Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. XmlFileLoader.php

function XmlFileLoader::loadXml

1 call to XmlFileLoader::loadXml()
XmlFileLoader::load in vendor/symfony/dependency-injection/Loader/XmlFileLoader.php

File

vendor/symfony/dependency-injection/Loader/XmlFileLoader.php, line 71

Class

XmlFileLoader
XmlFileLoader loads XML files service definitions.

Namespace

Symfony\Component\DependencyInjection\Loader

Code

private function loadXml(\DOMDocument $xml, string $path, ?\DOMNode $root = null) : void {
    $defaults = $this->getServiceDefaults($xml, $path, $root);
    // anonymous services
    $this->processAnonymousServices($xml, $path, $root);
    // imports
    $this->parseImports($xml, $path, $root);
    // parameters
    $this->parseParameters($xml, $path, $root);
    // extensions
    $this->loadFromExtensions($xml, $root);
    // services
    try {
        $this->parseDefinitions($xml, $path, $defaults, $root);
    } finally {
        $this->instanceof = [];
        $this->registerAliasesForSinglyImplementedInterfaces();
    }
}
RSS feed
Powered by Drupal