You are here

class ParameterCircularReferenceException in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/Exception/ParameterCircularReferenceException.php \Symfony\Component\DependencyInjection\Exception\ParameterCircularReferenceException

This exception is thrown when a circular reference in a parameter is detected.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of ParameterCircularReferenceException

2 files declare their use of ParameterCircularReferenceException
ParameterBag.php in vendor/symfony/dependency-injection/ParameterBag/ParameterBag.php
ParameterBagTest.php in vendor/symfony/dependency-injection/Tests/ParameterBag/ParameterBagTest.php

File

vendor/symfony/dependency-injection/Exception/ParameterCircularReferenceException.php, line 19

Namespace

Symfony\Component\DependencyInjection\Exception
View source
class ParameterCircularReferenceException extends RuntimeException {
  private $parameters;
  public function __construct($parameters, \Exception $previous = null) {
    parent::__construct(sprintf('Circular reference detected for parameter "%s" ("%s" > "%s").', $parameters[0], implode('" > "', $parameters), $parameters[0]), 0, $previous);
    $this->parameters = $parameters;
  }
  public function getParameters() {
    return $this->parameters;
  }

}

Members