1
0
mirror of https://github.com/flarum/core.git synced 2025-08-04 23:47:32 +02:00

Fix class names, view namespace

This commit is contained in:
Toby Zerner
2017-12-27 16:15:21 +10:30
parent 7518578a13
commit f19e24a377
4 changed files with 16 additions and 15 deletions

View File

@@ -11,8 +11,11 @@
use Flarum\Embed\Listener;
use Illuminate\Contracts\Events\Dispatcher;
use Illuminate\Contracts\View\Factory;
return function (Dispatcher $events) {
return function (Dispatcher $events, Factory $view) {
$events->subscribe(Listener\AddEmbedRoute::class);
$events->subscribe(Listener\FlushEmbedAssetsWhenSettingsAreChanged::class);
$view->addNamespace('flarum-embed', __DIR__.'/views');
};