You are here

public function DefinitionDecorator::setLazy in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/DefinitionDecorator.php \Symfony\Component\DependencyInjection\DefinitionDecorator::setLazy()

Sets the lazy flag of this service.

Parameters

bool $lazy:

Return value

Definition The current instance

Overrides Definition::setLazy

File

vendor/symfony/dependency-injection/DefinitionDecorator.php, line 143

Class

DefinitionDecorator
This definition decorates another definition.

Namespace

Symfony\Component\DependencyInjection

Code

public function setLazy($boolean) {
  $this->changes['lazy'] = true;
  return parent::setLazy($boolean);
}