diff --git a/extensions/mentions/src/Extension.php b/extensions/mentions/src/Extension.php index 270ed6ca6..bb2e82cfc 100644 --- a/extensions/mentions/src/Extension.php +++ b/extensions/mentions/src/Extension.php @@ -5,10 +5,8 @@ use Illuminate\Events\Dispatcher; class Extension extends BaseExtension { - public function boot(Dispatcher $events) + public function listen(Dispatcher $events) { - $this->loadViewsFrom(__DIR__.'/../views', 'mentions'); - $events->subscribe('Flarum\Mentions\Listeners\AddClientAssets'); $events->subscribe('Flarum\Mentions\Listeners\AddModelRelationships'); $events->subscribe('Flarum\Mentions\Listeners\AddApiRelationships'); @@ -17,4 +15,9 @@ class Extension extends BaseExtension $events->subscribe('Flarum\Mentions\Listeners\UpdateUserMentionsMetadata'); $events->subscribe('Flarum\Mentions\Listeners\UpdatePostMentionsMetadata'); } + + public function boot() + { + $this->loadViewsFrom(__DIR__.'/../views', 'mentions'); + } }