| 1 | <?php |
||
| 17 | class ContainerAwareSelfExecutionMiddleware implements Middleware |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var Container |
||
| 21 | */ |
||
| 22 | private $container; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * SelfExecutionMiddleware constructor. |
||
| 26 | * @param Container $container |
||
| 27 | */ |
||
| 28 | 4 | public function __construct(Container $container) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @param object $command |
||
| 35 | * @param callable $next |
||
| 36 | * @return mixed |
||
| 37 | * @throws CommandHasNoHandleMethodException |
||
| 38 | */ |
||
| 39 | 4 | public function execute($command, callable $next) |
|
| 49 | } |
||
| 50 |