mirror of
https://github.com/flarum/core.git
synced 2025-07-23 01:31:40 +02:00
Add API for adding a formatter
This commit is contained in:
@@ -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 = [])
|
protected function notificationType($class, $defaultPreferences = [])
|
||||||
{
|
{
|
||||||
$notifier = $this->app['flarum.notifier'];
|
$notifier = $this->app['flarum.notifier'];
|
||||||
|
Reference in New Issue
Block a user