You are here

public function ServiceCircularReferenceException::__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/ServiceCircularReferenceException.php \Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException::__construct()

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Exception/ServiceCircularReferenceException.php, line 24

Class

ServiceCircularReferenceException
This exception is thrown when a circular reference is detected.

Namespace

Symfony\Component\DependencyInjection\Exception

Code

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