public function Reference::__construct

Constructor.

Parameters

string $id The service identifier:

int $invalidBehavior The behavior when the service does not exist:

Boolean $strict Sets how this reference is validated:

See also

Container

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Reference.php, line 36

Class

Reference
Reference represents a service reference.

Namespace

Symfony\Component\DependencyInjection

Code

public function __construct($id, $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, $strict = true) {
  $this->id = strtolower($id);
  $this->invalidBehavior = $invalidBehavior;
  $this->strict = $strict;
}