Skip to content

Commit

Permalink
fix for laravel v11.21.x (lorisleiva#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlexIDK committed Aug 20, 2024
1 parent 5bff2b2 commit 4507d5b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Decorators/ListenerDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Lorisleiva\Actions\Decorators;

use Illuminate\Container\Container;
use Illuminate\Routing\RouteDependencyResolverTrait;
use Lorisleiva\Actions\Concerns\DecorateActions;

Expand All @@ -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)
Expand Down

0 comments on commit 4507d5b

Please sign in to comment.