public function Definition::setLazy

Sets the lazy flag of this service.

Parameters

Boolean $lazy:

Return value

Definition The current instance

File

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

Class

Definition
Definition represents a service definition.

Namespace

Symfony\Component\DependencyInjection

Code

public function setLazy($lazy) {
  $this->lazy = (bool) $lazy;
  return $this;
}