private function PhpDumper::getDefinitionsFromArguments in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Dumper/PhpDumper.php \Symfony\Component\DependencyInjection\Dumper\PhpDumper::getDefinitionsFromArguments()
Gets the definition from arguments.
Parameters
array $arguments:
Return value
array
1 call to PhpDumper::getDefinitionsFromArguments()
- PhpDumper::getInlinedDefinitions in vendor/
symfony/ dependency-injection/ Dumper/ PhpDumper.php - Returns the inline definition.
File
- vendor/
symfony/ dependency-injection/ Dumper/ PhpDumper.php, line 1213
Class
- PhpDumper
- PhpDumper dumps a service container as a PHP class.
Namespace
Symfony\Component\DependencyInjection\DumperCode
private function getDefinitionsFromArguments(array $arguments) {
$definitions = array();
foreach ($arguments as $argument) {
if (is_array($argument)) {
$definitions = array_merge($definitions, $this
->getDefinitionsFromArguments($argument));
}
elseif ($argument instanceof Definition) {
$definitions = array_merge($definitions, $this
->getInlinedDefinitions($argument), array(
$argument,
));
}
}
return $definitions;
}