| Conditions | 4 |
| Paths | 3 |
| Total Lines | 21 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function process(ContainerBuilder $container) |
||
| 31 | { |
||
| 32 | if (!$container->hasParameter('cmf_routing.backend_type_phpcr') |
||
| 33 | || !$container->hasParameter('swp_multi_tenancy.backend_type_phpcr')) { |
||
| 34 | return; |
||
| 35 | } |
||
| 36 | |||
| 37 | $bundles = $container->getParameter('kernel.bundles'); |
||
| 38 | if (!isset($bundles['CmfRoutingBundle'])) { |
||
| 39 | throw new RuntimeException( |
||
| 40 | 'You have enabled the PHPCR backend but the CmfRoutingBundle is not registered' |
||
| 41 | ); |
||
| 42 | } |
||
| 43 | |||
| 44 | $container->getDefinition('cmf_routing.phpcr_candidates_prefix') |
||
| 45 | ->setConfigurator([ |
||
| 46 | new Reference('swp_multi_tenancy.candidates_configurator'), |
||
| 47 | 'configure', |
||
| 48 | ]) |
||
| 49 | ; |
||
| 50 | } |
||
| 51 | } |
||
| 52 |