private function XmlFileLoader::loadFromExtensions 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::loadFromExtensions()
Loads from an extension.
Parameters
\DOMDocument $xml:
1 call to XmlFileLoader::loadFromExtensions()
- XmlFileLoader::load in vendor/
symfony/ dependency-injection/ Loader/ XmlFileLoader.php
File
- vendor/
symfony/ dependency-injection/ Loader/ XmlFileLoader.php, line 529
Class
- XmlFileLoader
- XmlFileLoader loads XML files service definitions.
Namespace
Symfony\Component\DependencyInjection\LoaderCode
private function loadFromExtensions(\DOMDocument $xml) {
foreach ($xml->documentElement->childNodes as $node) {
if (!$node instanceof \DOMElement || $node->namespaceURI === self::NS) {
continue;
}
$values = static::convertDomElementToArray($node);
if (!is_array($values)) {
$values = array();
}
$this->container
->loadFromExtension($node->namespaceURI, $values);
}
}