Skip to content

Commit 5a48b7b

Browse files
committed
tweaked code
1 parent df4fa70 commit 5a48b7b

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

DependencyInjection/Compiler/AddMimeTypeGuesserPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function process(ContainerBuilder $container)
3030
if ($container->has('mime_types')) {
3131
$definition = $container->findDefinition('mime_types');
3232
foreach ($container->findTaggedServiceIds('mime.mime_type_guesser', true) as $id => $attributes) {
33-
$definition->addMethodCall('registerGuesser', array(new Reference($id)));
33+
$definition->addMethodCall('registerGuesser', [new Reference($id)]);
3434
}
3535
}
3636
}

DependencyInjection/Compiler/UnusedTagsPass.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class UnusedTagsPass implements CompilerPassInterface
4242
'messenger.bus',
4343
'messenger.receiver',
4444
'messenger.message_handler',
45+
'mime.mime_type_guesser',
4546
'monolog.logger',
4647
'proxy',
4748
'routing.expression_language_provider',

DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@
7373
use Symfony\Component\Messenger\Transport\Serialization\SerializerInterface;
7474
use Symfony\Component\Messenger\Transport\TransportFactoryInterface;
7575
use Symfony\Component\Messenger\Transport\TransportInterface;
76-
use Symfony\Component\Mime\MimeTypes;
7776
use Symfony\Component\Mime\MimeTypeGuesserInterface;
77+
use Symfony\Component\Mime\MimeTypes;
7878
use Symfony\Component\PropertyAccess\PropertyAccessor;
7979
use Symfony\Component\PropertyInfo\PropertyAccessExtractorInterface;
8080
use Symfony\Component\PropertyInfo\PropertyDescriptionExtractorInterface;

FrameworkBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddAnnotationsCachedReaderPass;
1515
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddDebugLogProcessorPass;
16-
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddMimeTypeGuesserPass;
1716
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddExpressionLanguageProvidersPass;
17+
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddMimeTypeGuesserPass;
1818
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\ContainerBuilderDebugDumpPass;
1919
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\DataCollectorTranslatorPass;
2020
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\LoggingTranslatorPass;

0 commit comments

Comments
 (0)