diff --git a/src/Symfony/Component/HttpKernel/Attribute/AsController.php b/src/Symfony/Component/HttpKernel/Attribute/AsController.php index ef371045134d..48f8e577fddb 100644 --- a/src/Symfony/Component/HttpKernel/Attribute/AsController.php +++ b/src/Symfony/Component/HttpKernel/Attribute/AsController.php @@ -12,7 +12,11 @@ namespace Symfony\Component\HttpKernel\Attribute; /** - * Service tag to autoconfigure controllers. + * Autoconfigures controllers as services by applying + * the `controller.service_arguments` tag to them. + * + * This enables injecting services as method arguments in addition + * to other conventional dependency injection strategies. */ #[\Attribute(\Attribute::TARGET_CLASS)] class AsController