1 | <?php |
||
20 | class SymfonyContainerCommandHandlerLocator implements CommandHandlerLocator, ContainerAwareInterface |
||
21 | { |
||
22 | use ContainerAwareTrait; |
||
23 | |||
24 | /** |
||
25 | * @var array[] |
||
26 | */ |
||
27 | private $command_handler_ids = []; |
||
28 | |||
29 | /** |
||
30 | * @param Command $command |
||
31 | * |
||
32 | * @return callable|null |
||
33 | */ |
||
34 | 7 | public function findHandler(Command $command): ?callable |
|
38 | |||
39 | /** |
||
40 | * @param string $command_name |
||
41 | * @param string $service |
||
42 | * @param string $method |
||
43 | */ |
||
44 | 6 | public function registerService(string $command_name, string $service, string $method = '__invoke'): void |
|
48 | |||
49 | /** |
||
50 | * @param string $service_name |
||
51 | * @param string $class_name |
||
52 | */ |
||
53 | 1 | public function registerSubscriberService(string $service_name, string $class_name): void |
|
62 | |||
63 | /** |
||
64 | * @param string $command_name |
||
65 | * |
||
66 | * @return callable|null |
||
67 | */ |
||
68 | 7 | private function lazyLoad(string $command_name): ?callable |
|
78 | |||
79 | /** |
||
80 | * @param mixed $service |
||
81 | * @param string $method |
||
82 | * |
||
83 | * @return callable|null |
||
84 | */ |
||
85 | 5 | private function resolve($service, string $method): ?callable |
|
99 | } |
||
100 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.