From f4e7a800331938ed10071d950dac590d4550f9a9 Mon Sep 17 00:00:00 2001 From: Charlie Date: Mon, 4 Sep 2017 23:32:01 -0700 Subject: [PATCH] Update for beta 8 (#11) * Update for beta 8 * Never changed for the deprecated event --- extensions/emoji/src/Listener/AddClientAssets.php | 8 ++++---- extensions/emoji/src/Listener/FormatEmoticons.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/extensions/emoji/src/Listener/AddClientAssets.php b/extensions/emoji/src/Listener/AddClientAssets.php index 8d4d69036..52aabd3ed 100644 --- a/extensions/emoji/src/Listener/AddClientAssets.php +++ b/extensions/emoji/src/Listener/AddClientAssets.php @@ -11,7 +11,7 @@ namespace Flarum\Emoji\Listener; -use Flarum\Event\ConfigureWebApp; +use Flarum\Frontend\Event\Rendering; use Illuminate\Contracts\Events\Dispatcher; class AddClientAssets @@ -21,13 +21,13 @@ class AddClientAssets */ public function subscribe(Dispatcher $events) { - $events->listen(ConfigureWebApp::class, [$this, 'addAssets']); + $events->listen(Rendering::class, [$this, 'addAssets']); } /** - * @param ConfigureClientView $event + * @param Rendering $event */ - public function addAssets(ConfigureWebApp $event) + public function addAssets(Rendering $event) { if ($event->isForum()) { $event->addAssets([ diff --git a/extensions/emoji/src/Listener/FormatEmoticons.php b/extensions/emoji/src/Listener/FormatEmoticons.php index ea652c3a1..393e93843 100644 --- a/extensions/emoji/src/Listener/FormatEmoticons.php +++ b/extensions/emoji/src/Listener/FormatEmoticons.php @@ -11,7 +11,7 @@ namespace Flarum\Emoji\Listener; -use Flarum\Event\ConfigureFormatter; +use Flarum\Formatter\Event\Configuring; use Illuminate\Contracts\Events\Dispatcher; class FormatEmoticons @@ -21,13 +21,13 @@ class FormatEmoticons */ public function subscribe(Dispatcher $events) { - $events->listen(ConfigureFormatter::class, [$this, 'addEmoticons']); + $events->listen(Configuring::class, [$this, 'addEmoticons']); } /** - * @param ConfigureFormatter $event + * @param Configuring $event */ - public function addEmoticons(ConfigureFormatter $event) + public function addEmoticons(Configuring $event) { $event->configurator->Emoji->useEmojiOne(); $event->configurator->Emoji->omitImageSize();