Skip to content

Commit 3df3372

Browse files
minor symfony#52147 [HttpKernel] Improve PHPDoc on #[AsController] attribute (muchafm)
This PR was squashed before being merged into the 6.4 branch. Discussion ---------- [HttpKernel] Improve PHPDoc on `#[AsController]` attribute | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix symfony#51920 | License | MIT Improve PHPDoc on AsController attribute Commits ------- d5c59e0 [HttpKernel] Improve PHPDoc on `#[AsController]` attribute
2 parents 3d078d1 + d5c59e0 commit 3df3372

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)