Use new event name

This commit is contained in:
Toby Zerner 2016-06-03 11:02:19 +09:30
parent d6b78c78bd
commit c11738cdf5

View File

@ -11,7 +11,7 @@
namespace Flarum\Pusher\Listener; namespace Flarum\Pusher\Listener;
use Flarum\Event\ConfigureClientView; use Flarum\Event\ConfigureWebApp;
use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Contracts\Events\Dispatcher;
class AddClientAssets class AddClientAssets
@ -21,13 +21,13 @@ class AddClientAssets
*/ */
public function subscribe(Dispatcher $events) public function subscribe(Dispatcher $events)
{ {
$events->listen(ConfigureClientView::class, [$this, 'addAssets']); $events->listen(ConfigureWebApp::class, [$this, 'addAssets']);
} }
/** /**
* @param ConfigureClientView $event * @param ConfigureClientView $event
*/ */
public function addAssets(ConfigureClientView $event) public function addAssets(ConfigureWebApp $event)
{ {
if ($event->isForum()) { if ($event->isForum()) {
$event->addAssets([ $event->addAssets([