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

Breadcrumb

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

class Autoconfigure

An attribute to tell how a base type should be autoconfigured.

@author Nicolas Grekas <p@tchwork.com>

Hierarchy

  • class \Symfony\Component\DependencyInjection\Attribute\Autoconfigure

Expanded class hierarchy of Autoconfigure

1 file declares its use of Autoconfigure
RegisterAutoconfigureAttributesPass.php in vendor/symfony/dependency-injection/Compiler/RegisterAutoconfigureAttributesPass.php
2 string references to 'Autoconfigure'
XmlDumper::addService in vendor/symfony/dependency-injection/Dumper/XmlDumper.php
XmlFileLoader::parseDefinition in vendor/symfony/dependency-injection/Loader/XmlFileLoader.php
Parses an individual Definition.

File

vendor/symfony/dependency-injection/Attribute/Autoconfigure.php, line 19

Namespace

Symfony\Component\DependencyInjection\Attribute
View source
class Autoconfigure {
    
    /**
     * @param array<array-key, array<array-key, mixed>>|string[]|null $tags         The tags to add to the service
     * @param array<array<mixed>>|null                                $calls        The calls to be made when instantiating the service
     * @param array<string, mixed>|null                               $bind         The bindings to declare for the service
     * @param bool|string|null                                        $lazy         Whether the service is lazy-loaded
     * @param bool|null                                               $public       Whether to declare the service as public
     * @param bool|null                                               $shared       Whether to declare the service as shared
     * @param bool|null                                               $autowire     Whether to declare the service as autowired
     * @param array<string, mixed>|null                               $properties   The properties to define when creating the service
     * @param array<class-string, string>|string|null                 $configurator A PHP function, reference or an array containing a class/Reference and a method to call after the service is fully initialized
     * @param string|null                                             $constructor  The public static method to use to instantiate the service
     */
    public function __construct(?array $tags = null, ?array $calls = null, ?array $bind = null, bool|string|null $lazy = null, ?bool $public = null, ?bool $shared = null, ?bool $autowire = null, ?array $properties = null, array|string|null $configurator = null, ?string $constructor = null) {
    }

}

Members

Title Sort descending Modifiers Object type Summary Overrides
Autoconfigure::__construct public function 1

API Navigation

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