You are here

public function Container::isScopeActive in Service Container 7

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

Returns whether this scope is currently active.

This does not actually check if the passed scope actually exists.

@api

Parameters

string $name:

Return value

bool

File

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

Class

Container
Container is a dependency injection container.

Namespace

Symfony\Component\DependencyInjection

Code

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