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

Breadcrumb

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

function ResolveChildDefinitionsPass::resolveDefinition

Resolves the definition.

Throws

RuntimeException When the definition is invalid

2 calls to ResolveChildDefinitionsPass::resolveDefinition()
ResolveChildDefinitionsPass::doResolveDefinition in vendor/symfony/dependency-injection/Compiler/ResolveChildDefinitionsPass.php
ResolveChildDefinitionsPass::processValue in vendor/symfony/dependency-injection/Compiler/ResolveChildDefinitionsPass.php
Processes a value found in a definition tree.

File

vendor/symfony/dependency-injection/Compiler/ResolveChildDefinitionsPass.php, line 60

Class

ResolveChildDefinitionsPass
This replaces all ChildDefinition instances with their equivalent fully merged Definition instance.

Namespace

Symfony\Component\DependencyInjection\Compiler

Code

private function resolveDefinition(ChildDefinition $definition) : Definition {
    try {
        return $this->doResolveDefinition($definition);
    } catch (ServiceCircularReferenceException $e) {
        throw $e;
    } catch (ExceptionInterface $e) {
        $r = new \ReflectionProperty($e, 'message');
        $r->setValue($e, \sprintf('Service "%s": %s', $this->currentId, $e->getMessage()));
        throw $e;
    }
}
RSS feed
Powered by Drupal