1 | <?php |
||
25 | abstract class AbstractCollectionPass implements CompilerPassInterface |
||
26 | { |
||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $collectionServiceId; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $serviceTag; |
||
36 | |||
37 | /** |
||
38 | * Processes the container |
||
39 | * |
||
40 | * @param ContainerBuilder $container |
||
41 | */ |
||
42 | public function process(ContainerBuilder $container) |
||
54 | |||
55 | /** |
||
56 | * Returns collection service definition |
||
57 | * |
||
58 | * @param ContainerBuilder $container |
||
59 | * |
||
60 | * @return \Symfony\Component\DependencyInjection\Definition |
||
61 | */ |
||
62 | protected function getCollection(ContainerBuilder $container) |
||
66 | |||
67 | /** |
||
68 | * Adds new tagged service to collection |
||
69 | * |
||
70 | * @param Definition $collection |
||
71 | * @param string $id |
||
72 | */ |
||
73 | protected function addServiceToCollection(Definition $collection, $id) |
||
79 | } |
||
80 |