You are here

public function Definition::setLazy in Zircon Profile 8.0

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

Sets the lazy flag of this service.

Parameters

bool $lazy:

Return value

Definition The current instance

1 call to Definition::setLazy()
DefinitionDecorator::setLazy in vendor/symfony/dependency-injection/DefinitionDecorator.php
Sets the lazy flag of this service.
1 method overrides Definition::setLazy()
DefinitionDecorator::setLazy in vendor/symfony/dependency-injection/DefinitionDecorator.php
Sets the lazy flag of this service.

File

vendor/symfony/dependency-injection/Definition.php, line 632

Class

Definition
Definition represents a service definition.

Namespace

Symfony\Component\DependencyInjection

Code

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