mirror of
https://github.com/flarum/core.git
synced 2025-10-12 23:44:27 +02:00
Use lifecycle interface for frontend extender (#2211)
This commit is contained in:
committed by
GitHub
parent
1ce0b926b6
commit
3117d2ad7a
@@ -9,8 +9,6 @@
|
||||
|
||||
namespace Flarum\Admin;
|
||||
|
||||
use Flarum\Extension\Event\Disabled;
|
||||
use Flarum\Extension\Event\Enabled;
|
||||
use Flarum\Foundation\AbstractServiceProvider;
|
||||
use Flarum\Foundation\ErrorHandling\Registry;
|
||||
use Flarum\Foundation\ErrorHandling\Reporter;
|
||||
@@ -118,7 +116,7 @@ class AdminServiceProvider extends AbstractServiceProvider
|
||||
$events = $this->app->make('events');
|
||||
|
||||
$events->listen(
|
||||
[Enabled::class, Disabled::class, ClearingCache::class],
|
||||
ClearingCache::class,
|
||||
function () {
|
||||
$recompile = new RecompileFrontendAssets(
|
||||
$this->app->make('flarum.assets.admin'),
|
||||
|
Reference in New Issue
Block a user