public function InactiveScopeException::__construct 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::__construct()
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Exception/ InactiveScopeException.php, line 24
Class
- InactiveScopeException
- This exception is thrown when you try to create a service of an inactive scope.
Namespace
Symfony\Component\DependencyInjection\ExceptionCode
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;
}