Skip to content

Commit b500062

Browse files
committed
move add mime type guesser pass to the component
1 parent 2adabe9 commit b500062

File tree

3 files changed

+2
-81
lines changed

3 files changed

+2
-81
lines changed

DependencyInjection/Compiler/AddMimeTypeGuesserPass.php

Lines changed: 0 additions & 37 deletions
This file was deleted.

FrameworkBundle.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddAnnotationsCachedReaderPass;
1515
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddDebugLogProcessorPass;
1616
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddExpressionLanguageProvidersPass;
17-
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddMimeTypeGuesserPass;
1817
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\ContainerBuilderDebugDumpPass;
1918
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\DataCollectorTranslatorPass;
2019
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\LoggingTranslatorPass;
@@ -45,6 +44,7 @@
4544
use Symfony\Component\HttpKernel\DependencyInjection\ResettableServicePass;
4645
use Symfony\Component\HttpKernel\KernelEvents;
4746
use Symfony\Component\Messenger\DependencyInjection\MessengerPass;
47+
use Symfony\Component\Mime\DependencyInjection\AddMimeTypeGuesserPass;
4848
use Symfony\Component\PropertyInfo\DependencyInjection\PropertyInfoPass;
4949
use Symfony\Component\Routing\DependencyInjection\RoutingResolverPass;
5050
use Symfony\Component\Serializer\DependencyInjection\SerializerPass;
@@ -124,7 +124,7 @@ public function build(ContainerBuilder $container)
124124
$container->addCompilerPass(new ResettableServicePass());
125125
$container->addCompilerPass(new TestServiceContainerWeakRefPass(), PassConfig::TYPE_BEFORE_REMOVING, -32);
126126
$container->addCompilerPass(new TestServiceContainerRealRefPass(), PassConfig::TYPE_AFTER_REMOVING);
127-
$container->addCompilerPass(new AddMimeTypeGuesserPass());
127+
$this->addCompilerPassIfExists($container, AddMimeTypeGuesserPass::class);
128128
$this->addCompilerPassIfExists($container, MessengerPass::class);
129129

130130
if ($container->getParameter('kernel.debug')) {

Tests/DependencyInjection/Compiler/AddMimeTypeGuesserPassTest.php

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)