You are here

public function ParameterCircularReferenceException::__construct in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Exception/ParameterCircularReferenceException.php \Symfony\Component\DependencyInjection\Exception\ParameterCircularReferenceException::__construct()

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Exception/ParameterCircularReferenceException.php, line 23

Class

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

Namespace

Symfony\Component\DependencyInjection\Exception

Code

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;
}