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:
Alexander Skvortsov 2020-07-27 19:31:13 -04:00
parent 1fe034460b
commit 39bf9af538

View File

@ -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);