From d5c59e00ae75f5cf9b8a0485faba66e166dc4fb6 Mon Sep 17 00:00:00 2001 From: muchafm <47305202+muchafm@users.noreply.github.com> Date: Wed, 18 Oct 2023 20:43:20 +0200 Subject: [PATCH] [HttpKernel] Improve PHPDoc on `#[AsController]` attribute --- src/Symfony/Component/HttpKernel/Attribute/AsController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpKernel/Attribute/AsController.php b/src/Symfony/Component/HttpKernel/Attribute/AsController.php index ef371045134dc..48f8e577fddbb 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