private function PhpDumper::getInlinedDefinitions

Returns the inline definition.

Parameters

Definition $definition:

Return value

array

6 calls to PhpDumper::getInlinedDefinitions()

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php, line 1055

Class

PhpDumper
PhpDumper dumps a service container as a PHP class.

Namespace

Symfony\Component\DependencyInjection\Dumper

Code

private function getInlinedDefinitions(Definition $definition) {
  if (false === $this->inlinedDefinitions
    ->contains($definition)) {
    $definitions = array_merge($this
      ->getDefinitionsFromArguments($definition
      ->getArguments()), $this
      ->getDefinitionsFromArguments($definition
      ->getMethodCalls()), $this
      ->getDefinitionsFromArguments($definition
      ->getProperties()));
    $this->inlinedDefinitions
      ->offsetSet($definition, $definitions);
    return $definitions;
  }
  return $this->inlinedDefinitions
    ->offsetGet($definition);
}