private function XmlFileLoader::getChildren in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Loader/XmlFileLoader.php \Symfony\Component\DependencyInjection\Loader\XmlFileLoader::getChildren()
Get child elements by name.
Parameters
\DOMNode $node:
mixed $name:
Return value
array
4 calls to XmlFileLoader::getChildren()
- XmlFileLoader::getArgumentsAsPhp in vendor/
symfony/ dependency-injection/ Loader/ XmlFileLoader.php - Returns arguments as valid php types.
- XmlFileLoader::parseDefinition in vendor/
symfony/ dependency-injection/ Loader/ XmlFileLoader.php - Parses an individual Definition.
- XmlFileLoader::parseParameters in vendor/
symfony/ dependency-injection/ Loader/ XmlFileLoader.php - Parses parameters.
- XmlFileLoader::processAnonymousServices in vendor/
symfony/ dependency-injection/ Loader/ XmlFileLoader.php - Processes anonymous services.
File
- vendor/
symfony/ dependency-injection/ Loader/ XmlFileLoader.php, line 411
Class
- XmlFileLoader
- XmlFileLoader loads XML files service definitions.
Namespace
Symfony\Component\DependencyInjection\LoaderCode
private function getChildren(\DOMNode $node, $name) {
$children = array();
foreach ($node->childNodes as $child) {
if ($child instanceof \DOMElement && $child->localName === $name && $child->namespaceURI === self::NS) {
$children[] = $child;
}
}
return $children;
}