private function PhpDumper::getInlinedDefinitions in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/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 modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Dumper/ PhpDumper.php - Generates the require_once statement for service includes.
- PhpDumper::addServiceInlinedDefinitions in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Dumper/ PhpDumper.php - Generates the inline definition of a service.
- PhpDumper::addServiceInlinedDefinitionsSetup in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Dumper/ PhpDumper.php - Generates the inline definition setup.
- PhpDumper::addServiceLocalTempVariables in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Dumper/ PhpDumper.php - Generates Service local temp variables.
- PhpDumper::getDefinitionsFromArguments in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Dumper/ PhpDumper.php - Gets the definition from arguments.
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Dumper/ PhpDumper.php, line 1187
Class
- PhpDumper
- PhpDumper dumps a service container as a PHP class.
Namespace
Symfony\Component\DependencyInjection\DumperCode
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);
}