class 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 extends \Symfony\Component\DependencyInjection\Exception\RuntimeException implements \Symfony\Component\DependencyInjection\Exception\ExceptionInterface
- class \Symfony\Component\DependencyInjection\Exception\RuntimeException extends \Symfony\Component\DependencyInjection\Exception\RuntimeException implements \Symfony\Component\DependencyInjection\Exception\ExceptionInterface
- class \Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException extends \Symfony\Component\DependencyInjection\Exception\RuntimeException
- class \Symfony\Component\DependencyInjection\Exception\RuntimeException extends \Symfony\Component\DependencyInjection\Exception\RuntimeException implements \Symfony\Component\DependencyInjection\Exception\ExceptionInterface
Expanded class hierarchy of ServiceCircularReferenceException
10 files declare their use of ServiceCircularReferenceException
- CheckCircularReferencesPass.php in vendor/
symfony/ dependency-injection/ Compiler/ CheckCircularReferencesPass.php - Container.php in vendor/
symfony/ dependency-injection/ Container.php - Container.php in core/
lib/ Drupal/ Component/ DependencyInjection/ Container.php - ContainerBuilder.php in vendor/
symfony/ dependency-injection/ ContainerBuilder.php - ContainerInterface.php in vendor/
symfony/ dependency-injection/ ContainerInterface.php
File
-
vendor/
symfony/ dependency-injection/ Exception/ ServiceCircularReferenceException.php, line 19
Namespace
Symfony\Component\DependencyInjection\ExceptionView source
class ServiceCircularReferenceException extends RuntimeException {
public function __construct(string $serviceId, array $path, ?\Throwable $previous = null) {
parent::__construct(\sprintf('Circular reference detected for service "%s", path: "%s".', $serviceId, implode(' -> ', $path)), 0, $previous);
}
public function getServiceId() : string {
return $this->serviceId;
}
public function getPath() : array {
return $this->path;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ServiceCircularReferenceException::getPath | public | function | |
ServiceCircularReferenceException::getServiceId | public | function | |
ServiceCircularReferenceException::__construct | public | function |