1 | <?php |
||
21 | class CommandProcessorPass implements CompilerPassInterface |
||
22 | { |
||
23 | /** |
||
24 | * Command processor factory service ID. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $processorFactoryService; |
||
29 | |||
30 | /** |
||
31 | * Processor listener tag name. |
||
32 | * |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $listenerTag; |
||
36 | |||
37 | /** |
||
38 | * Class constructor. |
||
39 | * |
||
40 | * @param string $serviceFactoryService Service name of the event dispatcher in processed container. |
||
41 | * @param string $listenerTag Tag name used for listener. |
||
42 | */ |
||
43 | 1 | public function __construct($serviceFactoryService = 'gendoria_command_queue.processor_factory', $listenerTag = 'gendoria_command_queue.processor') |
|
48 | |||
49 | /** |
||
50 | * Process command processor tagged services and add to command processor factory. |
||
51 | * |
||
52 | * @param ContainerBuilder $container |
||
53 | * |
||
54 | * @throws InvalidArgumentException |
||
55 | */ |
||
56 | 1 | public function process(ContainerBuilder $container) |
|
84 | } |
||
85 |