Import extend namspace

This commit is contained in:
Franz Liedke 2018-01-21 22:20:58 +01:00
parent ac01d40b9a
commit 5d5cec3914

View File

@ -10,16 +10,17 @@
*/
use Flarum\Akismet\Listener;
use Flarum\Extend;
use Illuminate\Contracts\Events\Dispatcher;
return [
(new \Flarum\Extend\Assets('forum'))
(new Extend\Assets('forum'))
->asset(__DIR__.'/js/forum/dist/extension.js')
->bootstrapper('flarum/akismet/main'),
(new \Flarum\Extend\Assets('admin'))
(new Extend\Assets('admin'))
->asset(__DIR__.'/js/admin/dist/extension.js')
->bootstrapper('flarum/akismet/main'),
function (Dispatcher $events) {
$events->subscribe(Listener\FilterNewPosts::class);
}
},
];