You are here

class ParameterCircularReferenceException in Service Container 7.2

Same name and namespace in other branches
  1. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/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 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php
ParameterBagTest.php in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ParameterBag/ParameterBagTest.php

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/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