mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 04:31:57 +08:00
Add API for adding a formatter
This commit is contained in:
parent
b4fd662000
commit
a1cd6417c7
@ -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'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user