mirror of
https://github.com/flarum/core.git
synced 2025-07-17 14:51:19 +02:00
Use new event name
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
namespace Flarum\Flags\Listener;
|
namespace Flarum\Flags\Listener;
|
||||||
|
|
||||||
use Flarum\Event\ConfigureClientView;
|
use Flarum\Event\ConfigureWebApp;
|
||||||
use Illuminate\Contracts\Events\Dispatcher;
|
use Illuminate\Contracts\Events\Dispatcher;
|
||||||
|
|
||||||
class AddClientAssets
|
class AddClientAssets
|
||||||
@@ -20,13 +20,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([
|
||||||
|
Reference in New Issue
Block a user