class ServiceCircularReferenceException

This exception is thrown when a circular reference is detected.

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

Hierarchy

Expanded class hierarchy of ServiceCircularReferenceException

3 files declare their use of ServiceCircularReferenceException
CheckCircularReferencesPass.php in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Compiler/CheckCircularReferencesPass.php
Container.php in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Container.php
PhpDumper.php in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php

File

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

Namespace

Symfony\Component\DependencyInjection\Exception
View source
class ServiceCircularReferenceException extends RuntimeException {
  private $serviceId;
  private $path;
  public function __construct($serviceId, array $path) {
    parent::__construct(sprintf('Circular reference detected for service "%s", path: "%s".', $serviceId, implode(' -> ', $path)));
    $this->serviceId = $serviceId;
    $this->path = $path;
  }
  public function getServiceId() {
    return $this->serviceId;
  }
  public function getPath() {
    return $this->path;
  }

}

Members