mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 10:42:46 +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
1fe034460b
commit
39bf9af538
@ -23,7 +23,6 @@ use Flarum\Subscriptions\Gambit\SubscriptionGambit;
|
||||
use Flarum\Subscriptions\Listener;
|
||||
use Flarum\Subscriptions\Notification\NewPostBlueprint;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
use Illuminate\Contracts\View\Factory;
|
||||
|
||||
return [
|
||||
(new Extend\Frontend('forum'))
|
||||
@ -36,7 +35,7 @@ return [
|
||||
(new Extend\View)
|
||||
->namespace('flarum-subscriptions', __DIR__.'/views'),
|
||||
|
||||
function (Dispatcher $events, Factory $views) {
|
||||
function (Dispatcher $events) {
|
||||
$events->listen(Serializing::class, Listener\AddDiscussionSubscriptionAttribute::class);
|
||||
$events->listen(Saving::class, Listener\SaveSubscriptionToDatabase::class);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user