Skip to content

Commit d5c59e0

Browse files
muchafmnicolas-grekas
authored andcommitted
[HttpKernel] Improve PHPDoc on #[AsController] attribute
1 parent 1a72bd5 commit d5c59e0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Symfony/Component/HttpKernel/Attribute/AsController.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
namespace Symfony\Component\HttpKernel\Attribute;
1313

1414
/**
15-
* Service tag to autoconfigure controllers.
15+
* Autoconfigures controllers as services by applying
16+
* the `controller.service_arguments` tag to them.
17+
*
18+
* This enables injecting services as method arguments in addition
19+
* to other conventional dependency injection strategies.
1620
*/
1721
#[\Attribute(\Attribute::TARGET_CLASS)]
1822
class AsController

0 commit comments

Comments
 (0)