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

Breadcrumb

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

class ServiceCircularReferenceException

This exception is thrown when a circular reference is detected.

@author Johannes M. Schmitt <schmittjoh@gmail.com>

Hierarchy

  • class \Symfony\Component\DependencyInjection\Exception\RuntimeException extends \Symfony\Component\DependencyInjection\Exception\RuntimeException implements \Symfony\Component\DependencyInjection\Exception\ExceptionInterface
    • class \Symfony\Component\DependencyInjection\Exception\RuntimeException extends \Symfony\Component\DependencyInjection\Exception\RuntimeException implements \Symfony\Component\DependencyInjection\Exception\ExceptionInterface
      • class \Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException extends \Symfony\Component\DependencyInjection\Exception\RuntimeException

Expanded class hierarchy of ServiceCircularReferenceException

10 files declare their use of ServiceCircularReferenceException
CheckCircularReferencesPass.php in vendor/symfony/dependency-injection/Compiler/CheckCircularReferencesPass.php
Container.php in vendor/symfony/dependency-injection/Container.php
Container.php in core/lib/Drupal/Component/DependencyInjection/Container.php
ContainerBuilder.php in vendor/symfony/dependency-injection/ContainerBuilder.php
ContainerInterface.php in vendor/symfony/dependency-injection/ContainerInterface.php

... See full list

File

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

Namespace

Symfony\Component\DependencyInjection\Exception
View source
class ServiceCircularReferenceException extends RuntimeException {
    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);
    }
    public function getServiceId() : string {
        return $this->serviceId;
    }
    public function getPath() : array {
        return $this->path;
    }

}

Members

Title Sort descending Modifiers Object type Summary
ServiceCircularReferenceException::getPath public function
ServiceCircularReferenceException::getServiceId public function
ServiceCircularReferenceException::__construct public function

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal