Skip to content

Commit

Permalink
minor #52147 [HttpKernel] Improve PHPDoc on #[AsController] attribu…
Browse files Browse the repository at this point in the history
…te (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 #51920
| License       | MIT

Improve PHPDoc on AsController attribute

Commits
-------

d5c59e0 [HttpKernel] Improve PHPDoc on `#[AsController]` attribute
  • Loading branch information
nicolas-grekas committed Oct 27, 2023
2 parents 3d078d1 + d5c59e0 commit 3df3372
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Symfony/Component/HttpKernel/Attribute/AsController.php
Expand Up @@ -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
Expand Down

0 comments on commit 3df3372

Please sign in to comment.