| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 26 | public function process(ContainerBuilder $container) |
||
| 27 | { |
||
| 28 | if (!$container->has('sylius.sitemap_builder')) { |
||
| 29 | return; |
||
| 30 | } |
||
| 31 | |||
| 32 | $builderDefinition = $container->findDefinition('sylius.sitemap_builder'); |
||
| 33 | $taggedProviders = $container->findTaggedServiceIds('sylius.sitemap_provider'); |
||
| 34 | |||
| 35 | foreach ($taggedProviders as $id => $tags) { |
||
| 36 | $builderDefinition->addMethodCall('addProvider', [(new Reference($id))]); |
||
| 37 | } |
||
| 38 | } |
||
| 39 | } |
||
| 40 |