You are here

public function Definition::setScope in Zircon Profile 8.0

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

Sets the scope of the service.

Parameters

string $scope Whether the service must be shared or not:

Return value

Definition The current instance

File

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

Class

Definition
Definition represents a service definition.

Namespace

Symfony\Component\DependencyInjection

Code

public function setScope($scope) {
  $this->scope = $scope;
  return $this;
}