You are here

public function Container::hasScope in Service Container 7.2

Same name in this branch
  1. 7.2 lib/Drupal/Component/DependencyInjection/Container.php \Drupal\Component\DependencyInjection\Container::hasScope()
  2. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Container.php \Symfony\Component\DependencyInjection\Container::hasScope()
Same name and namespace in other branches
  1. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Container.php \Symfony\Component\DependencyInjection\Container::hasScope()

Returns whether this container has a certain scope.

@api

Parameters

string $name The name of the scope:

Return value

bool

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Container.php, line 530

Class

Container
Container is a dependency injection container.

Namespace

Symfony\Component\DependencyInjection

Code

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