1
0
mirror of https://github.com/flarum/core.git synced 2025-10-18 18:26:07 +02:00

PERF: avoid reinstantiation of event subscribers

This commit is contained in:
Toby Zerner
2015-07-27 11:53:47 +09:30
parent c0d57fd399
commit 153a5b7ce4
6 changed files with 20 additions and 20 deletions

View File

@@ -26,7 +26,7 @@ class DiscussionRenamedNotifier
*/
public function subscribe(Dispatcher $events)
{
$events->listen(DiscussionWasRenamed::class, __CLASS__.'@whenDiscussionWasRenamed');
$events->listen(DiscussionWasRenamed::class, [$this, 'whenDiscussionWasRenamed']);
}
/**