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

Breadcrumb

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

function AutowirePass::__construct

File

vendor/symfony/dependency-injection/Compiler/AutowirePass.php, line 50

Class

AutowirePass
Inspects existing service definitions and wires the autowired ones using the type hints of their classes.

Namespace

Symfony\Component\DependencyInjection\Compiler

Code

public function __construct(bool $throwOnAutowiringException = true) {
    $this->defaultArgument = new class  {
        public $value;
        public $names;
        public $bag;
        public function withValue(\ReflectionParameter $parameter) : self {
            $clone = clone $this;
            $clone->value = $this->bag
                ->escapeValue($parameter->getDefaultValue());
            return $clone;
        }

};
}

API Navigation

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