|
12 | 12 | namespaceSymfony\Bundle\FrameworkBundle\DependencyInjection;
|
13 | 13 |
|
14 | 14 | useComposer\InstalledVersions;
|
| 15 | +useDoctrine\ORM\Mapping\Entity; |
15 | 16 | useHttp\Client\HttpAsyncClient;
|
16 | 17 | useHttp\Client\HttpClient;
|
17 | 18 | usephpDocumentor\Reflection\DocBlockFactoryInterface;
|
18 | 19 | usephpDocumentor\Reflection\Types\ContextFactory;
|
19 | 20 | usePhpParser\Parser;
|
20 | 21 | usePHPStan\PhpDocParser\Parser\PhpDocParser;
|
| 22 | +usePHPUnit\Framework\TestCase; |
21 | 23 | usePsr\Cache\CacheItemPoolInterface;
|
22 | 24 | usePsr\Clock\ClockInterfaceasPsrClockInterface;
|
23 | 25 | usePsr\Container\ContainerInterfaceasPsrContainerInterface;
|
|
57 | 59 | useSymfony\Component\DependencyInjection\Alias;
|
58 | 60 | useSymfony\Component\DependencyInjection\Argument\ServiceLocatorArgument;
|
59 | 61 | useSymfony\Component\DependencyInjection\ChildDefinition;
|
| 62 | +useSymfony\Component\DependencyInjection\Compiler\CompilerPassInterface; |
60 | 63 | useSymfony\Component\DependencyInjection\Compiler\ServiceLocatorTagPass;
|
61 | 64 | useSymfony\Component\DependencyInjection\ContainerBuilder;
|
62 | 65 | useSymfony\Component\DependencyInjection\ContainerInterface;
|
|
99 | 102 | useSymfony\Component\HttpKernel\Controller\ValueResolverInterface;
|
100 | 103 | useSymfony\Component\HttpKernel\DataCollector\DataCollectorInterface;
|
101 | 104 | useSymfony\Component\HttpKernel\DependencyInjection\Extension;
|
| 105 | +useSymfony\Component\HttpKernel\KernelInterface; |
102 | 106 | useSymfony\Component\HttpKernel\Log\DebugLoggerConfigurator;
|
103 | 107 | useSymfony\Component\JsonStreamer\Attribute\JsonStreamable;
|
104 | 108 | useSymfony\Component\JsonStreamer\JsonStreamWriter;
|
|
117 | 121 | useSymfony\Component\Mailer\EventListener\SmimeSignedMessageListener;
|
118 | 122 | useSymfony\Component\Mailer\Mailer;
|
119 | 123 | useSymfony\Component\Mercure\HubRegistry;
|
| 124 | +useSymfony\Component\Messenger\Attribute\AsMessage; |
120 | 125 | useSymfony\Component\Messenger\Attribute\AsMessageHandler;
|
121 | 126 | useSymfony\Component\Messenger\BridgeasMessengerBridge;
|
122 | 127 | useSymfony\Component\Messenger\Handler\BatchHandlerInterface;
|
@@ -757,12 +762,25 @@ static function (ChildDefinition $definition, AsPeriodicTask|AsCronTask $attribu
|
757 | 762 | }
|
758 | 763 | );
|
759 | 764 | }
|
760 |
| -$container->registerAttributeForAutoconfiguration(JsonStreamable::class,staticfunction (ChildDefinition$definition,JsonStreamable$attribute):void { |
761 |
| -$definition->addTag('json_streamer.streamable', [ |
| 765 | + |
| 766 | +$container->registerForAutoconfiguration(CompilerPassInterface::class) |
| 767 | + ->addExcludeTag('container.excluded.compiler_pass'); |
| 768 | +$container->registerForAutoconfiguration(KernelInterface::class) |
| 769 | + ->addExcludeTag('container.excluded.kernel'); |
| 770 | +$container->registerForAutoconfiguration(TestCase::class) |
| 771 | + ->addExcludeTag('container.excluded.test_case'); |
| 772 | +$container->registerAttributeForAutoconfiguration(AsMessage::class,staticfunction (ChildDefinition$definition) { |
| 773 | +$definition->addExcludeTag('container.excluded.messenger.message'); |
| 774 | + }); |
| 775 | +$container->registerAttributeForAutoconfiguration(Entity::class,staticfunction (ChildDefinition$definition) { |
| 776 | +$definition->addExcludeTag('container.excluded.doctrine.entity'); |
| 777 | + }); |
| 778 | + |
| 779 | +$container->registerAttributeForAutoconfiguration(JsonStreamable::class,staticfunction (ChildDefinition$definition,JsonStreamable$attribute) { |
| 780 | +$definition->addExcludeTag('json_streamer.streamable', [ |
762 | 781 | 'object' =>$attribute->asObject,
|
763 | 782 | 'list' =>$attribute->asList,
|
764 | 783 | ]);
|
765 |
| -$definition->addTag('container.excluded'); |
766 | 784 | });
|
767 | 785 |
|
768 | 786 | if (!$container->getParameter('kernel.debug')) {
|
|