class ServiceCircularReferenceException in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Exception/ServiceCircularReferenceException.php \Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException
This exception is thrown when a circular reference is detected.
@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\ServiceCircularReferenceException
- class \Symfony\Component\DependencyInjection\Exception\RuntimeException implements ExceptionInterface
Expanded class hierarchy of ServiceCircularReferenceException
7 files declare their use of ServiceCircularReferenceException
- CheckCircularReferencesPass.php in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Compiler/ CheckCircularReferencesPass.php - Container.php in lib/
Drupal/ Component/ DependencyInjection/ Container.php - Contains \Drupal\Component\DependencyInjection\Container.
- Container.php in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Container.php - ContainerInterface.php in lib/
Symfony/ Component/ DependencyInjection/ ContainerInterface.php - ContainerInterface.php in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ ContainerInterface.php
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Exception/ ServiceCircularReferenceException.php, line 19
Namespace
Symfony\Component\DependencyInjection\ExceptionView source
class ServiceCircularReferenceException extends RuntimeException {
private $serviceId;
private $path;
public function __construct($serviceId, array $path, \Exception $previous = null) {
parent::__construct(sprintf('Circular reference detected for service "%s", path: "%s".', $serviceId, implode(' -> ', $path)), 0, $previous);
$this->serviceId = $serviceId;
$this->path = $path;
}
public function getServiceId() {
return $this->serviceId;
}
public function getPath() {
return $this->path;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ServiceCircularReferenceException:: |
private | property | ||
ServiceCircularReferenceException:: |
private | property | ||
ServiceCircularReferenceException:: |
public | function | ||
ServiceCircularReferenceException:: |
public | function | ||
ServiceCircularReferenceException:: |
public | function |