Use new View extender

Refs flarum/core#2134.
This commit is contained in:
Franz Liedke 2020-07-17 12:11:42 +02:00
parent 7a5fee739b
commit b033b61164

View File

@ -42,6 +42,9 @@ return [
new Extend\Locales(__DIR__.'/locale'), new Extend\Locales(__DIR__.'/locale'),
(new Extend\View)
->namespace('tags', __DIR__.'/views'),
function (Dispatcher $events, Factory $view) { function (Dispatcher $events, Factory $view) {
$events->subscribe(Listener\AddDiscussionTagsRelationship::class); $events->subscribe(Listener\AddDiscussionTagsRelationship::class);
@ -58,7 +61,5 @@ return [
$events->subscribe(Access\DiscussionPolicy::class); $events->subscribe(Access\DiscussionPolicy::class);
$events->subscribe(Access\TagPolicy::class); $events->subscribe(Access\TagPolicy::class);
$events->subscribe(Access\FlagPolicy::class); $events->subscribe(Access\FlagPolicy::class);
$view->addNamespace('tags', __DIR__.'/views');
}, },
]; ];