1
0
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:
Alexander Skvortsov
2020-07-17 05:49:52 -04:00
committed by GitHub
parent 1ce0b926b6
commit 3117d2ad7a
3 changed files with 29 additions and 16 deletions

View File

@@ -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'),