class InactiveScopeException in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Exception/InactiveScopeException.php \Symfony\Component\DependencyInjection\Exception\InactiveScopeException
This exception is thrown when you try to create a service of an inactive scope.
@author Johannes M. Schmitt <schmittjoh@gmail.com>
Hierarchy
- class \Symfony\Component\DependencyInjection\Exception\RuntimeException implements ExceptionInterface
- class \Symfony\Component\DependencyInjection\Exception\RuntimeException implements ExceptionInterface
- class \Symfony\Component\DependencyInjection\Exception\InactiveScopeException
- class \Symfony\Component\DependencyInjection\Exception\RuntimeException implements ExceptionInterface
Expanded class hierarchy of InactiveScopeException
13 files declare their use of InactiveScopeException
- Container.php in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Container.php - ContainerBuilder.php in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ ContainerBuilder.php - ContainerBuilderTest.php in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Tests/ ContainerBuilderTest.php - ContainerTest.php in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Tests/ ContainerTest.php - services1-1.php in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Tests/ Fixtures/ php/ services1-1.php
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Exception/ InactiveScopeException.php, line 19
Namespace
Symfony\Component\DependencyInjection\ExceptionView source
class InactiveScopeException extends RuntimeException {
private $serviceId;
private $scope;
public function __construct($serviceId, $scope, \Exception $previous = null) {
parent::__construct(sprintf('You cannot create a service ("%s") of an inactive scope ("%s").', $serviceId, $scope), 0, $previous);
$this->serviceId = $serviceId;
$this->scope = $scope;
}
public function getServiceId() {
return $this->serviceId;
}
public function getScope() {
return $this->scope;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InactiveScopeException:: |
private | property | ||
InactiveScopeException:: |
private | property | ||
InactiveScopeException:: |
public | function | ||
InactiveScopeException:: |
public | function | ||
InactiveScopeException:: |
public | function |