Total Complexity | 3 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 62.5% |
Changes | 0 |
1 | <?php |
||
15 | #[ScopeAttribute('console.command')] |
||
16 | final class CommandCore implements CoreInterface, HandlerInterface |
||
|
|||
17 | { |
||
18 | 98 | public function __construct( |
|
19 | private readonly InvokerInterface $invoker, |
||
20 | ) { |
||
21 | 98 | } |
|
22 | |||
23 | /** |
||
24 | * @param array{input: InputInterface, output: OutputInterface, command: Command}|array $parameters |
||
25 | */ |
||
26 | public function callAction(string $controller, string $action, array $parameters = []): int |
||
27 | { |
||
28 | $command = $parameters['command']; |
||
29 | |||
30 | return (int)$this->invoker->invoke([$command, $action]); |
||
31 | } |
||
32 | |||
33 | 98 | public function handle(CallContext $context): int |
|
37 | } |
||
38 | } |
||
39 |
This interface has been deprecated. The supplier of the interface has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.