1
0
mirror of https://github.com/flarum/core.git synced 2025-08-10 18:35:56 +02:00

Use Frontend extender for embedding statistics in admin frontend

Refs flarum/core#1602, flarum/core#1608.
This commit is contained in:
Franz Liedke
2018-10-21 22:35:12 +02:00
parent 54266ea341
commit 6d2ebadcbf
2 changed files with 8 additions and 25 deletions

View File

@@ -11,14 +11,10 @@
use Flarum\Extend;
use Flarum\Statistics\Listener;
use Illuminate\Contracts\Events\Dispatcher;
return [
(new Extend\Frontend('admin'))
->js(__DIR__.'/js/dist/admin.js')
->css(__DIR__.'/less/admin.less'),
function (Dispatcher $events) {
$events->subscribe(Listener\AddStatisticsData::class);
}
->css(__DIR__.'/less/admin.less')
->content(Listener\AddStatisticsData::class),
];