You are here

public function Container::hasScope in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/dependency-injection/Container.php \Symfony\Component\DependencyInjection\Container::hasScope()
  2. 8 core/lib/Drupal/Component/DependencyInjection/Container.php \Drupal\Component\DependencyInjection\Container::hasScope()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/Container.php \Symfony\Component\DependencyInjection\Container::hasScope()

Returns whether this container has a certain scope.

Parameters

string $name The name of the scope:

Return value

bool

Overrides ContainerInterface::hasScope

File

vendor/symfony/dependency-injection/Container.php, line 500

Class

Container
Container is a dependency injection container.

Namespace

Symfony\Component\DependencyInjection

Code

public function hasScope($name) {
  return isset($this->scopes[$name]);
}