1 | <?php |
||
16 | class Handler |
||
17 | { |
||
18 | /** |
||
19 | * @var Registry |
||
20 | */ |
||
21 | private $registry; |
||
22 | |||
23 | /** |
||
24 | * @var EventDispatcherInterface |
||
25 | */ |
||
26 | private $dispatcher; |
||
27 | |||
28 | /** |
||
29 | * @param Registry $registry |
||
30 | * @param EventDispatcherInterface|null $dispatcher |
||
31 | */ |
||
32 | 4 | public function __construct(Registry $registry, EventDispatcherInterface $dispatcher = null) |
|
37 | |||
38 | /** |
||
39 | * Handle provide command |
||
40 | */ |
||
41 | 2 | public function handle(Client $client, $index, $type, $alias = null) |
|
62 | |||
63 | 2 | private function dispatchHandlingStartedEvent(array $entries) |
|
72 | |||
73 | 2 | private function dispatchProvidingStartedEvent(RegistryEntry $entry) |
|
82 | |||
83 | 2 | private function dispatchProvidingFinishedEvent(RegistryEntry $entry) |
|
92 | } |
||
93 |