Add API for adding a formatter

This commit is contained in:
Toby Zerner 2015-05-11 12:11:26 +09:30
parent d3845ed1c0
commit 2d04a7a100

View File

@ -38,6 +38,11 @@ class ServiceProvider extends IlluminateServiceProvider
});
}
protected function formatter($name, $class, $priority = 0)
{
$this->app['flarum.formatter']->add($name, $class, $priority);
}
protected function notificationType($class, $defaultPreferences = [])
{
$notifier = $this->app['flarum.notifier'];