From b9edb29d9f989a0aeddda1b4eae261b8a1f31aff Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Thu, 13 Aug 2015 12:49:58 +0930 Subject: [PATCH] Use new listen API --- extensions/mentions/src/Extension.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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'); + } }