You are here

private function PhpDumper::getInlinedDefinitions in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/dependency-injection/Dumper/PhpDumper.php \Symfony\Component\DependencyInjection\Dumper\PhpDumper::getInlinedDefinitions()

Returns the inline definition.

Parameters

Definition $definition:

Return value

array

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

... See full list

File

vendor/symfony/dependency-injection/Dumper/PhpDumper.php, line 1187

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
      ->getDefinitionsFromArguments(array(
      $definition
        ->getConfigurator(),
    )), $this
      ->getDefinitionsFromArguments(array(
      $definition
        ->getFactory(),
    )));
    $this->inlinedDefinitions
      ->offsetSet($definition, $definitions);
    return $definitions;
  }
  return $this->inlinedDefinitions
    ->offsetGet($definition);
}