AsController.php 623 B

123456789101112131415161718192021222324
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\HttpKernel\Attribute;
  11. /**
  12. * Autoconfigures controllers as services by applying
  13. * the `controller.service_arguments` tag to them.
  14. *
  15. * This enables injecting services as method arguments in addition
  16. * to other conventional dependency injection strategies.
  17. */
  18. #[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_FUNCTION)]
  19. class AsController
  20. {
  21. }