| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function create(ContainerBuilder $container, $loaderName, array $config) |
||
| 25 | { |
||
| 26 | $definition = $this->getChildLoaderDefinition($this->getChildLoaderName()); |
||
| 27 | |||
| 28 | if ($container->hasDefinition('liip_imagine.mime_types')) { |
||
| 29 | $mimeTypes = $container->getDefinition('liip_imagine.mime_types'); |
||
| 30 | $definition->replaceArgument(0, $mimeTypes); |
||
| 31 | } |
||
| 32 | |||
| 33 | $definition->replaceArgument(1, new Reference($config['filesystem_service'])); |
||
| 34 | |||
| 35 | return $this->setTaggedLoaderDefinition($loaderName, $definition, $container); |
||
| 36 | } |
||
| 37 | |||
| 72 |