public function Definition::setLazy in Service Container 7.2
Same name and namespace in other branches
- 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/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 modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ DefinitionDecorator.php - @api
1 method overrides Definition::setLazy()
- DefinitionDecorator::setLazy in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ DefinitionDecorator.php - @api
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Definition.php, line 703
Class
- Definition
- Definition represents a service definition.
Namespace
Symfony\Component\DependencyInjectionCode
public function setLazy($lazy) {
$this->lazy = (bool) $lazy;
return $this;
}