class InactiveScopeException

This exception is thrown when you try to create a service of an inactive scope.

@author Johannes M. Schmitt <schmittjoh@gmail.com>

Hierarchy

Expanded class hierarchy of InactiveScopeException

4 files declare their use of InactiveScopeException
services1.php in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services1.php
services10.php in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services10.php
services8.php in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services8.php
services9.php in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9.php

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Exception/InactiveScopeException.php, line 19

Namespace

Symfony\Component\DependencyInjection\Exception
View source
class InactiveScopeException extends RuntimeException {
  private $serviceId;
  private $scope;
  public function __construct($serviceId, $scope) {
    parent::__construct(sprintf('You cannot create a service ("%s") of an inactive scope ("%s").', $serviceId, $scope));
    $this->serviceId = $serviceId;
    $this->scope = $scope;
  }
  public function getServiceId() {
    return $this->serviceId;
  }
  public function getScope() {
    return $this->scope;
  }

}

Members