private function PhpDumper::getInlinedDefinitions

Returns the inline definition

Parameters

Definition $definition:

Return value

array

6 calls to PhpDumper::getInlinedDefinitions()
PhpDumper::addServiceInclude in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
Generates the require_once statement for service includes.
PhpDumper::addServiceInlinedDefinitions in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
Generates the inline definition of a service.
PhpDumper::addServiceInlinedDefinitionsSetup in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
Generates the inline definition setup.
PhpDumper::addServiceLocalTempVariables in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
Generates Service local temp variables.
PhpDumper::getDefinitionsFromArguments in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
Gets the definition from arguments

... See full list

File

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

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);
}