You are here

class ServiceCircularReferenceException in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/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

Expanded class hierarchy of ServiceCircularReferenceException

6 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
Contains \Drupal\Component\DependencyInjection\Container.
ContainerInterface.php in vendor/symfony/dependency-injection/ContainerInterface.php
PhpDumper.php in vendor/symfony/dependency-injection/Dumper/PhpDumper.php

... See full list

File

vendor/symfony/dependency-injection/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, \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