public function ServiceCircularReferenceException::__construct

File

drupal/core/vendor/symfony/dependency-injection/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) {
  parent::__construct(sprintf('Circular reference detected for service "%s", path: "%s".', $serviceId, implode(' -> ', $path)));
  $this->serviceId = $serviceId;
  $this->path = $path;
}