| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function process(ContainerBuilder $container): void |
||
| 31 | { |
||
| 32 | if ($container->hasDefinition('mime_types')) { |
||
| 33 | $container->removeDefinition('liip_imagine.mime_type_guesser'); |
||
| 34 | $container->removeDefinition('liip_imagine.extension_guesser'); |
||
| 35 | |||
| 36 | $container->setAlias('liip_imagine.mime_type_guesser', 'mime_types'); |
||
| 37 | $container->setAlias('liip_imagine.extension_guesser', 'mime_types'); |
||
| 38 | |||
| 39 | $message = 'Replaced the "%s" and "%s" service definitions with aliases to "%s"'; |
||
| 40 | |||
| 41 | $this->log($container, $message, 'liip_imagine.mime_type_guesser', 'liip_imagine.extension_guesser', 'mime_types'); |
||
| 42 | } |
||
| 43 | } |
||
| 44 | } |
||
| 45 |