mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 10:25:42 +08:00
Use new event name
This commit is contained in:
parent
8035415785
commit
0e8061c32f
@ -10,7 +10,7 @@
|
||||
|
||||
namespace Flarum\Lock\Listener;
|
||||
|
||||
use Flarum\Event\ConfigureClientView;
|
||||
use Flarum\Event\ConfigureWebApp;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
|
||||
class AddClientAssets
|
||||
@ -20,13 +20,13 @@ class AddClientAssets
|
||||
*/
|
||||
public function subscribe(Dispatcher $events)
|
||||
{
|
||||
$events->listen(ConfigureClientView::class, [$this, 'addAssets']);
|
||||
$events->listen(ConfigureWebApp::class, [$this, 'addAssets']);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ConfigureClientView $event
|
||||
*/
|
||||
public function addAssets(ConfigureClientView $event)
|
||||
public function addAssets(ConfigureWebApp $event)
|
||||
{
|
||||
if ($event->isForum()) {
|
||||
$event->addAssets([
|
||||
|
Loading…
x
Reference in New Issue
Block a user