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

Breadcrumb

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

function ServiceLocatorTrait::createCircularReferenceException

1 call to ServiceLocatorTrait::createCircularReferenceException()
ServiceLocatorTrait::get in vendor/symfony/service-contracts/ServiceLocatorTrait.php
1 method overrides ServiceLocatorTrait::createCircularReferenceException()
ServiceLocator::createCircularReferenceException in vendor/symfony/dependency-injection/ServiceLocator.php

File

vendor/symfony/service-contracts/ServiceLocatorTrait.php, line 110

Class

ServiceLocatorTrait
A trait to help implement ServiceProviderInterface.

Namespace

Symfony\Contracts\Service

Code

private function createCircularReferenceException(string $id, array $path) : ContainerExceptionInterface {
    return new class (sprintf('Circular reference detected for service "%s", path: "%s".', $id, implode(' -> ', $path))) extends \RuntimeException implements ContainerExceptionInterface {

};
}
RSS feed
Powered by Drupal