|
14 | 14 | use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddAnnotationsCachedReaderPass;
|
15 | 15 | use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddDebugLogProcessorPass;
|
16 | 16 | use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddExpressionLanguageProvidersPass;
|
17 |
| -use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddMimeTypeGuesserPass; |
18 | 17 | use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\ContainerBuilderDebugDumpPass;
|
19 | 18 | use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\DataCollectorTranslatorPass;
|
20 | 19 | use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\LoggingTranslatorPass;
|
|
45 | 44 | use Symfony\Component\HttpKernel\DependencyInjection\ResettableServicePass;
|
46 | 45 | use Symfony\Component\HttpKernel\KernelEvents;
|
47 | 46 | use Symfony\Component\Messenger\DependencyInjection\MessengerPass;
|
| 47 | +use Symfony\Component\Mime\DependencyInjection\AddMimeTypeGuesserPass; |
48 | 48 | use Symfony\Component\PropertyInfo\DependencyInjection\PropertyInfoPass;
|
49 | 49 | use Symfony\Component\Routing\DependencyInjection\RoutingResolverPass;
|
50 | 50 | use Symfony\Component\Serializer\DependencyInjection\SerializerPass;
|
@@ -124,7 +124,7 @@ public function build(ContainerBuilder $container)
|
124 | 124 | $container->addCompilerPass(new ResettableServicePass());
|
125 | 125 | $container->addCompilerPass(new TestServiceContainerWeakRefPass(), PassConfig::TYPE_BEFORE_REMOVING, -32);
|
126 | 126 | $container->addCompilerPass(new TestServiceContainerRealRefPass(), PassConfig::TYPE_AFTER_REMOVING);
|
127 |
| - $container->addCompilerPass(new AddMimeTypeGuesserPass()); |
| 127 | + $this->addCompilerPassIfExists($container, AddMimeTypeGuesserPass::class); |
128 | 128 | $this->addCompilerPassIfExists($container, MessengerPass::class);
|
129 | 129 |
|
130 | 130 | if ($container->getParameter('kernel.debug')) {
|
|
0 commit comments