mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 09:11:40 +08:00
Don't typehint the view factory in the closure in extend.php
This causes the view factory to resolve early, breaking all future extensions that use the view extender
This commit is contained in:
parent
d1cf21dcd2
commit
5d7f1d87d5
@ -25,7 +25,6 @@ use Flarum\Post\Event\Revised;
|
||||
use Flarum\Post\Post;
|
||||
use Flarum\User\User;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
use Illuminate\Contracts\View\Factory;
|
||||
|
||||
return [
|
||||
(new Extend\Frontend('forum'))
|
||||
@ -45,7 +44,7 @@ return [
|
||||
(new Extend\View)
|
||||
->namespace('flarum-mentions', __DIR__.'/views'),
|
||||
|
||||
function (Dispatcher $events, Factory $views) {
|
||||
function (Dispatcher $events) {
|
||||
$events->listen(WillSerializeData::class, Listener\FilterVisiblePosts::class);
|
||||
$events->subscribe(Listener\AddPostMentionedByRelationship::class);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user