1
0
mirror of https://github.com/flarum/core.git synced 2025-07-22 09:11:19 +02:00

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'];