diff --git a/extensions/sticky/src/Listeners/AddApiAttributes.php b/extensions/sticky/src/Listeners/AddApiAttributes.php index 1c0266ed8..90904fce7 100755 --- a/extensions/sticky/src/Listeners/AddApiAttributes.php +++ b/extensions/sticky/src/Listeners/AddApiAttributes.php @@ -10,8 +10,8 @@ class AddApiAttributes { public function subscribe(Dispatcher $events) { - $events->listen(ApiAttributes::class, __CLASS__.'@addAttributes'); - $events->listen(BuildApiAction::class, __CLASS__.'@includeStartPost'); + $events->listen(ApiAttributes::class, [$this, 'addAttributes']); + $events->listen(BuildApiAction::class, [$this, 'includeStartPost']); } public function addAttributes(ApiAttributes $event) diff --git a/extensions/sticky/src/Listeners/AddClientAssets.php b/extensions/sticky/src/Listeners/AddClientAssets.php index 63ccb33f5..c7bf5e6bc 100755 --- a/extensions/sticky/src/Listeners/AddClientAssets.php +++ b/extensions/sticky/src/Listeners/AddClientAssets.php @@ -8,8 +8,8 @@ class AddClientAssets { public function subscribe(Dispatcher $events) { - $events->listen(RegisterLocales::class, __CLASS__.'@addLocale'); - $events->listen(BuildClientView::class, __CLASS__.'@addAssets'); + $events->listen(RegisterLocales::class, [$this, 'addLocale']); + $events->listen(BuildClientView::class, [$this, 'addAssets']); } public function addLocale(RegisterLocales $event) diff --git a/extensions/sticky/src/Listeners/NotifyDiscussionStickied.php b/extensions/sticky/src/Listeners/NotifyDiscussionStickied.php index 15eb094ab..1244cb934 100755 --- a/extensions/sticky/src/Listeners/NotifyDiscussionStickied.php +++ b/extensions/sticky/src/Listeners/NotifyDiscussionStickied.php @@ -22,10 +22,10 @@ class NotifyDiscussionStickied public function subscribe(Dispatcher $events) { - $events->listen(RegisterPostTypes::class, __CLASS__.'@registerPostType'); - $events->listen(RegisterNotificationTypes::class, __CLASS__.'@registerNotificationType'); - $events->listen(DiscussionWasStickied::class, __CLASS__.'@whenDiscussionWasStickied'); - $events->listen(DiscussionWasUnstickied::class, __CLASS__.'@whenDiscussionWasUnstickied'); + $events->listen(RegisterPostTypes::class, [$this, 'registerPostType']); + $events->listen(RegisterNotificationTypes::class, [$this, 'registerNotificationType']); + $events->listen(DiscussionWasStickied::class, [$this, 'whenDiscussionWasStickied']); + $events->listen(DiscussionWasUnstickied::class, [$this, 'whenDiscussionWasUnstickied']); } public function registerPostType(RegisterPostTypes $event) diff --git a/extensions/sticky/src/Listeners/PersistData.php b/extensions/sticky/src/Listeners/PersistData.php index c434bd6b6..6a70088ef 100755 --- a/extensions/sticky/src/Listeners/PersistData.php +++ b/extensions/sticky/src/Listeners/PersistData.php @@ -8,7 +8,7 @@ class PersistData { public function subscribe($events) { - $events->listen(DiscussionWillBeSaved::class, __CLASS__.'@whenDiscussionWillBeSaved'); + $events->listen(DiscussionWillBeSaved::class, [$this, 'whenDiscussionWillBeSaved']); } public function whenDiscussionWillBeSaved(DiscussionWillBeSaved $event) diff --git a/extensions/sticky/src/Listeners/PinStickiedDiscussionsToTop.php b/extensions/sticky/src/Listeners/PinStickiedDiscussionsToTop.php index ce3e236a6..5e88cf5bb 100755 --- a/extensions/sticky/src/Listeners/PinStickiedDiscussionsToTop.php +++ b/extensions/sticky/src/Listeners/PinStickiedDiscussionsToTop.php @@ -9,8 +9,8 @@ class PinStickiedDiscussionsToTop { public function subscribe(Dispatcher $events) { - $events->listen(RegisterDiscussionGambits::class, __CLASS__.'@registerStickyGambit'); - $events->listen(DiscussionSearchWillBePerformed::class, __CLASS__.'@reorderSearch'); + $events->listen(RegisterDiscussionGambits::class, [$this, 'registerStickyGambit']); + $events->listen(DiscussionSearchWillBePerformed::class, [$this, 'reorderSearch']); } public function registerStickyGambit(RegisterDiscussionGambits $event)