|
164 | 164 | use Symfony\Component\RateLimiter\Storage\CacheStorage;
|
165 | 165 | use Symfony\Component\RemoteEvent\Attribute\AsRemoteEventConsumer;
|
166 | 166 | use Symfony\Component\RemoteEvent\RemoteEvent;
|
| 167 | +use Symfony\Component\Routing\Attribute\Route; |
167 | 168 | use Symfony\Component\Scheduler\Attribute\AsCronTask;
|
168 | 169 | use Symfony\Component\Scheduler\Attribute\AsPeriodicTask;
|
169 | 170 | use Symfony\Component\Scheduler\Attribute\AsSchedule;
|
@@ -429,7 +430,7 @@ public function load(array $configs, ContainerBuilder $container): void
|
429 | 430 | }
|
430 | 431 | $loggers[$exception['log_channel']] = new Reference('monolog.logger.'.$exception['log_channel'], ContainerInterface::NULL_ON_INVALID_REFERENCE);
|
431 | 432 | }
|
432 |
| - |
| 433 | + |
433 | 434 | $exceptionListener
|
434 | 435 | ->replaceArgument(3, $config['exceptions'])
|
435 | 436 | ->setArgument(4, $loggers)
|
@@ -739,6 +740,9 @@ public function load(array $configs, ContainerBuilder $container): void
|
739 | 740 | $container->registerAttributeForAutoconfiguration(AsController::class, static function (ChildDefinition $definition, AsController $attribute): void {
|
740 | 741 | $definition->addTag('controller.service_arguments');
|
741 | 742 | });
|
| 743 | + $container->registerAttributeForAutoconfiguration(Route::class, static function (ChildDefinition $definition, Route $attribute, \ReflectionClass|\ReflectionMethod $reflection): void { |
| 744 | + $definition->addTag('controller.service_arguments'); |
| 745 | + }); |
742 | 746 | $container->registerAttributeForAutoconfiguration(AsRemoteEventConsumer::class, static function (ChildDefinition $definition, AsRemoteEventConsumer $attribute): void {
|
743 | 747 | $definition->addTag('remote_event.consumer', ['consumer' => $attribute->name]);
|
744 | 748 | });
|
|
0 commit comments