From 4507d5bc7b28d168881a799081e60c245b3449db Mon Sep 17 00:00:00 2001 From: Eugene Date: Tue, 20 Aug 2024 20:08:48 +0300 Subject: [PATCH] fix for laravel v11.21.x (#289) --- src/Decorators/ListenerDecorator.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Decorators/ListenerDecorator.php b/src/Decorators/ListenerDecorator.php index 09a57c8..5d9f2f9 100644 --- a/src/Decorators/ListenerDecorator.php +++ b/src/Decorators/ListenerDecorator.php @@ -2,6 +2,7 @@ namespace Lorisleiva\Actions\Decorators; +use Illuminate\Container\Container; use Illuminate\Routing\RouteDependencyResolverTrait; use Lorisleiva\Actions\Concerns\DecorateActions; @@ -10,9 +11,15 @@ class ListenerDecorator use RouteDependencyResolverTrait; use DecorateActions; + /** + * @var \Illuminate\Container\Container + */ + protected $container; + public function __construct($action) { $this->setAction($action); + $this->container = new Container; } public function handle(...$arguments)