public function Definition::setSynthetic

Sets whether this definition is synthetic, that is not constructed by the container, but dynamically injected.

@api

Parameters

Boolean $boolean:

Return value

Definition the current instance

File

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

Class

Definition
Definition represents a service definition.

Namespace

Symfony\Component\DependencyInjection

Code

public function setSynthetic($boolean) {
  $this->synthetic = (bool) $boolean;
  return $this;
}