8000 fix compatibility with DependencyInjection < 7.3 · simPod/symfony@c2523f6 · GitHub
[go: up one dir, main page]

Skip to content

Commit c2523f6

Browse files
committed
fix compatibility with DependencyInjection < 7.3
1 parent 07e020a commit c2523f6

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -765,27 +765,29 @@ static function (ChildDefinition $definition, AsPeriodicTask|AsCronTask $attribu
765765
}
766766

767767
$container->registerForAutoconfiguration(CompilerPassInterface::class)
768-
->addResourceTag('container.excluded.compiler_pass');
768+
->addTag('container.excluded.compiler_pass')->addTag('container.excluded')->setAbstract(true);
769769
$container->registerForAutoconfiguration(TestCase::class)
770-
->addResourceTag('container.excluded.test_case');
770+
->addTag('container.excluded.test_case')->addTag('container.excluded')->setAbstract(true);
771771
$container->registerAttributeForAutoconfiguration(AsMessage::class, static function (ChildDefinition $definition) {
772-
$definition->addResourceTag('container.excluded.messenger.message');
772+
$definition->addTag('container.excluded.messenger.message')->addTag('container.excluded')->setAbstract(true);
773773
});
774774
$container->registerAttributeForAutoconfiguration(Entity::class, static function (ChildDefinition $definition) {
775-
$definition->addResourceTag('container.excluded.doctrine.entity');
775+
$definition->addTag('container.excluded.doctrine.entity')->addTag('container.excluded')->setAbstract(true);
776776
});
777777
$container->registerAttributeForAutoconfiguration(Embeddable::class, static function (ChildDefinition $definition) {
778-
$definition->addResourceTag('container.excluded.doctrine.embeddable');
778+
$definition->addTag('container.excluded.doctrine.embeddable')->addTag('container.excluded')->setAbstract(true);
779779
});
780780
$container->registerAttributeForAutoconfiguration(MappedSuperclass::class, static function (ChildDefinition $definition) {
781-
$definition->addResourceTag('container.excluded.doctrine.mapped_superclass');
781+
$definition->addTag('container.excluded.doctrine.mapped_superclass')->addTag('container.excluded')->setAbstract(true);
782782
});
783783

784784
$container->registerAttributeForAutoconfiguration(JsonStreamable::class, static function (ChildDefinition $definition, JsonStreamable $attribute) {
785-
$definition->addResourceTag('json_streamer.streamable', [
785+
$definition->addTag('json_streamer.streamable', [
786786
'object' => $attribute->asObject,
787787
'list' => $attribute->asList,
788788
]);
789+
$definition->addTag('container.excluded');
790+
$definition->setAbstract(true);
789791
});
790792

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

0 commit comments

Comments
 (0)
0