|
204 | 204 | use Symfony\Component\TypeInfo\TypeResolver\TypeResolverInterface; |
205 | 205 | use Symfony\Component\Uid\Factory\UuidFactory; |
206 | 206 | use Symfony\Component\Uid\UuidV4; |
| 207 | +use Symfony\Component\Validator\Constraint; |
207 | 208 | use Symfony\Component\Validator\Constraints\ExpressionLanguageProvider; |
208 | 209 | use Symfony\Component\Validator\ConstraintValidatorInterface; |
209 | 210 | use Symfony\Component\Validator\GroupProviderInterface; |
@@ -786,29 +787,34 @@ static function (ChildDefinition $definition, AsPeriodicTask|AsCronTask $attribu |
786 | 787 | } |
787 | 788 |
|
788 | 789 | $container->registerForAutoconfiguration(CompilerPassInterface::class) |
789 | | - ->addTag('container.excluded.compiler_pass')->addTag('container.excluded')->setAbstract(true); |
| 790 | + ->addTag('container.excluded', ['source' => 'because it\'s a compiler pass'])->setAbstract(true); |
| 791 | + $container->registerForAutoconfiguration(Constraint::class) |
| 792 | + ->addTag('container.excluded', ['source' => 'because it\'s a validation constraint'])->setAbstract(true); |
790 | 793 | $container->registerForAutoconfiguration(TestCase::class) |
791 | | - ->addTag('container.excluded.test_case')->addTag('container.excluded')->setAbstract(true); |
| 794 | + ->addTag('container.excluded', ['source' => 'because it\'s a test case'])->setAbstract(true); |
| 795 | + $container->registerForAutoconfiguration(\UnitEnum::class) |
| 796 | + ->addTag('container.excluded', ['source' => 'because it\'s an enum'])->setAbstract(true); |
792 | 797 | $container->registerAttributeForAutoconfiguration(AsMessage::class, static function (ChildDefinition $definition) { |
793 | | - $definition->addTag('container.excluded.messenger.message')->addTag('container.excluded')->setAbstract(true); |
| 798 | + $definition->addTag('container.excluded', ['source' => 'because it\'s a messenger message'])->setAbstract(true); |
| 799 | + }); |
| 800 | + $container->registerAttributeForAutoconfiguration(\Attribute::class, static function (ChildDefinition $definition) { |
| 801 | + $definition->addTag('container.excluded', ['source' => 'because it\'s an attribute'])->setAbstract(true); |
794 | 802 | }); |
795 | 803 | $container->registerAttributeForAutoconfiguration(Entity::class, static function (ChildDefinition $definition) { |
796 | | - $definition->addTag('container.excluded.doctrine.entity')->addTag('container.excluded')->setAbstract(true); |
| 804 | + $definition->addTag('container.excluded', ['source' => 'because it\'s a doctrine entity'])->setAbstract(true); |
797 | 805 | }); |
798 | 806 | $container->registerAttributeForAutoconfiguration(Embeddable::class, static function (ChildDefinition $definition) { |
799 | | - $definition->addTag('container.excluded.doctrine.embeddable')->addTag('container.excluded')->setAbstract(true); |
| 807 | + $definition->addTag('container.excluded', ['source' => 'because it\'s a doctrine embeddable'])->setAbstract(true); |
800 | 808 | }); |
801 | 809 | $container->registerAttributeForAutoconfiguration(MappedSuperclass::class, static function (ChildDefinition $definition) { |
802 | | - $definition->addTag('container.excluded.doctrine.mapped_superclass')->addTag('container.excluded')->setAbstract(true); |
| 810 | + $definition->addTag('container.excluded', ['source' => 'because it\'s a doctrine mapped superclass'])->setAbstract(true); |
803 | 811 | }); |
804 | 812 |
|
805 | 813 | $container->registerAttributeForAutoconfiguration(JsonStreamable::class, static function (ChildDefinition $definition, JsonStreamable $attribute) { |
806 | 814 | $definition->addTag('json_streamer.streamable', [ |
807 | 815 | 'object' => $attribute->asObject, |
808 | 816 | 'list' => $attribute->asList, |
809 | | - ]); |
810 | | - $definition->addTag('container.excluded'); |
811 | | - $definition->setAbstract(true); |
| 817 | + ])->addTag('container.excluded', ['source' => 'because it\'s a streamable JSON'])->setAbstract(true); |
812 | 818 | }); |
813 | 819 |
|
814 | 820 | if (!$container->getParameter('kernel.debug')) { |
|
0 commit comments