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

Breadcrumb

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

function XmlFileLoader::parseParameters

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

File

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

Class

XmlFileLoader
XmlFileLoader loads XML files service definitions.

Namespace

Symfony\Component\DependencyInjection\Loader

Code

private function parseParameters(\DOMDocument $xml, string $file, ?\DOMNode $root = null) : void {
    if ($parameters = $this->getChildren($root ?? $xml->documentElement, 'parameters')) {
        $this->container
            ->getParameterBag()
            ->add($this->getArgumentsAsPhp($parameters[0], 'parameter', $file));
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal