Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ServiceCircularReferenceException.php

function ServiceCircularReferenceException::__construct

File

vendor/symfony/dependency-injection/Exception/ServiceCircularReferenceException.php, line 21

Class

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

Namespace

Symfony\Component\DependencyInjection\Exception

Code

public function __construct(string $serviceId, array $path, ?\Throwable $previous = null) {
    parent::__construct(\sprintf('Circular reference detected for service "%s", path: "%s".', $serviceId, implode(' -> ', $path)), 0, $previous);
}
RSS feed
Powered by Drupal