mirror of
https://github.com/flarum/framework.git
synced 2025-05-29 11:40:18 +08:00
Remove BasicFormatter; add LinkifyFormatter
This commit is contained in:
@ -33,6 +33,8 @@ class CoreServiceProvider extends ServiceProvider
|
||||
$this->registerGambits();
|
||||
$this->setupModels();
|
||||
|
||||
$this->app['flarum.formatter']->add('linkify', 'Flarum\Core\Formatter\LinkifyFormatter');
|
||||
|
||||
$bus->mapUsing(function ($command) {
|
||||
return Bus::simpleMapping(
|
||||
$command, 'Flarum\Core\Commands', 'Flarum\Core\Handlers\Commands'
|
||||
@ -54,11 +56,7 @@ class CoreServiceProvider extends ServiceProvider
|
||||
// forum, registering, and starting discussions.)
|
||||
$this->app->singleton('flarum.forum', 'Flarum\Core\Models\Forum');
|
||||
|
||||
$this->app->singleton('flarum.formatter', function () {
|
||||
$formatter = new FormatterManager($this->app);
|
||||
$formatter->add('basic', 'Flarum\Core\Formatter\BasicFormatter');
|
||||
return $formatter;
|
||||
});
|
||||
$this->app->singleton('flarum.formatter', 'Flarum\Core\Formatter\FormatterManager');
|
||||
|
||||
$this->app->bind(
|
||||
'Flarum\Core\Repositories\DiscussionRepositoryInterface',
|
||||
|
Reference in New Issue
Block a user