Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AsController.php

class AsController

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.

Hierarchy

  • class \Symfony\Component\HttpKernel\Attribute\AsController

Expanded class hierarchy of AsController

1 file declares its use of AsController
ControllerResolver.php in vendor/symfony/http-kernel/Controller/ControllerResolver.php

File

vendor/symfony/http-kernel/Attribute/AsController.php, line 21

Namespace

Symfony\Component\HttpKernel\Attribute
View source
class AsController {

}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal