From 39bf9af53804088884f12d0d53eea50aa13867f9 Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Mon, 27 Jul 2020 19:31:13 -0400 Subject: [PATCH] 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 --- extensions/subscriptions/extend.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extensions/subscriptions/extend.php b/extensions/subscriptions/extend.php index c4c29d0c2..0916cba5d 100644 --- a/extensions/subscriptions/extend.php +++ b/extensions/subscriptions/extend.php @@ -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);