public function Definition::setScope 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::setScope()
Sets the scope of the service.
@api
Parameters
string $scope Whether the service must be shared or not:
Return value
Definition The current instance
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Definition.php, line 609
Class
- Definition
- Definition represents a service definition.
Namespace
Symfony\Component\DependencyInjectionCode
public function setScope($scope) {
$this->scope = $scope;
return $this;
}