mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 03:59:39 +08:00
Use new event name
This commit is contained in:
parent
a31582de5a
commit
d4f15858ca
@ -1,6 +1,6 @@
|
||||
<?php namespace Flarum\Tags\Handlers;
|
||||
|
||||
use Flarum\Api\Events\WillRespond;
|
||||
use Flarum\Api\Events\WillSerializeData;
|
||||
use Flarum\Api\Actions\Forum\ShowAction as ForumShowAction;
|
||||
use Flarum\Tags\Tag;
|
||||
|
||||
@ -8,10 +8,10 @@ class TagLoader
|
||||
{
|
||||
public function subscribe($events)
|
||||
{
|
||||
$events->listen('Flarum\Api\Events\WillRespond', __CLASS__.'@whenWillRespond');
|
||||
$events->listen('Flarum\Api\Events\WillSerializeData', __CLASS__.'@whenWillSerializeData');
|
||||
}
|
||||
|
||||
public function whenWillRespond(WillRespond $event)
|
||||
public function whenWillSerializeData(WillSerializeData $event)
|
||||
{
|
||||
if ($event->action instanceof ForumShowAction) {
|
||||
$forum = $event->data;
|
||||
|
Loading…
x
Reference in New Issue
Block a user