public function 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

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Definition.php, line 521

Class

Definition
Definition represents a service definition.

Namespace

Symfony\Component\DependencyInjection

Code

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