mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 21:11:55 +08:00
parent
7a5fee739b
commit
b033b61164
|
@ -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');
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user