mirror of
https://github.com/flarum/core.git
synced 2025-08-08 01:16:52 +02:00
Use new event name
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<?php namespace Flarum\Tags\Handlers;
|
<?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\Api\Actions\Forum\ShowAction as ForumShowAction;
|
||||||
use Flarum\Tags\Tag;
|
use Flarum\Tags\Tag;
|
||||||
|
|
||||||
@@ -8,10 +8,10 @@ class TagLoader
|
|||||||
{
|
{
|
||||||
public function subscribe($events)
|
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) {
|
if ($event->action instanceof ForumShowAction) {
|
||||||
$forum = $event->data;
|
$forum = $event->data;
|
||||||
|
Reference in New Issue
Block a user