public function Definition::__construct

Constructor.

@api

Parameters

string $class The service class:

array $arguments An array of arguments to pass to the service constructor:

1 call to Definition::__construct()
DefinitionDecorator::__construct in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/DefinitionDecorator.php
Constructor.
1 method overrides Definition::__construct()
DefinitionDecorator::__construct in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/DefinitionDecorator.php
Constructor.

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Definition.php, line 50

Class

Definition
Definition represents a service definition.

Namespace

Symfony\Component\DependencyInjection

Code

public function __construct($class = null, array $arguments = array()) {
  $this->class = $class;
  $this->arguments = $arguments;
  $this->calls = array();
  $this->scope = ContainerInterface::SCOPE_CONTAINER;
  $this->tags = array();
  $this->public = true;
  $this->synthetic = false;
  $this->abstract = false;
  $this->properties = array();
}