@@ -765,27 +765,29 @@ static function (ChildDefinition $definition, AsPeriodicTask|AsCronTask $attribu
765
765
}
766
766
767
767
$ container ->registerForAutoconfiguration (CompilerPassInterface::class)
768
- ->addResourceTag ('container.excluded.compiler_pass ' );
768
+ ->addTag ('container.excluded.compiler_pass ' )-> addTag ( ' container.excluded ' )-> setAbstract ( true );
769
769
$ container ->registerForAutoconfiguration (TestCase::class)
770
- ->addResourceTag ('container.excluded.test_case ' );
770
+ ->addTag ('container.excluded.test_case ' )-> addTag ( ' container.excluded ' )-> setAbstract ( true );
771
771
$ 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 );
773
773
});
774
774
$ 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 );
776
776
});
777
777
$ 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 );
779
779
});
780
780
$ 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 );
782
782
});
783
783
784
784
$ container ->registerAttributeForAutoconfiguration (JsonStreamable::class, static function (ChildDefinition $ definition , JsonStreamable $ attribute ) {
785
- $ definition ->addResourceTag ('json_streamer.streamable ' , [
785
+ $ definition ->addTag ('json_streamer.streamable ' , [
786
786
'object ' => $ attribute ->asObject ,
787
787
'list ' => $ attribute ->asList ,
788
788
]);
789
+ $ definition ->addTag ('container.excluded ' );
790
+ $ definition ->setAbstract (true );
789
791
});
790
792
791
793
if (!$ container ->getParameter ('kernel.debug ' )) {
0 commit comments