mirror of
https://github.com/flarum/framework.git
synced 2024-12-04 08:13:39 +08:00
Add API for adding a formatter
This commit is contained in:
parent
d3845ed1c0
commit
2d04a7a100
|
@ -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…
Reference in New Issue
Block a user