1 | <?php |
||
9 | class CachePoolPass implements CompilerPassInterface |
||
10 | { |
||
11 | /** |
||
12 | * {@inheritdoc} |
||
13 | */ |
||
14 | public function process(ContainerBuilder $container) |
||
22 | |||
23 | /** |
||
24 | * Returns a reference to a service, if that service exists in the container. |
||
25 | * The service ID is obtained by fetching the value of the provided $parameterName. |
||
26 | * This allows us to inject a service into the bundle by supplying the service ID in the bundle configuration. |
||
27 | * |
||
28 | * If the specified service does not exist in the container, an exception is thrown. |
||
29 | * |
||
30 | * @param ContainerBuilder $container |
||
31 | * @param string $parameterName |
||
32 | * |
||
33 | * @return Reference|null |
||
34 | * |
||
35 | * @throws \Exception |
||
36 | */ |
||
37 | private function getServiceReference(ContainerBuilder $container, $parameterName) |
||
54 | } |
||
55 |