You are here

private function XmlFileLoader::parseParameters in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/Loader/XmlFileLoader.php \Symfony\Component\DependencyInjection\Loader\XmlFileLoader::parseParameters()

Parses parameters.

Parameters

\DOMDocument $xml:

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

File

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

Class

XmlFileLoader
XmlFileLoader loads XML files service definitions.

Namespace

Symfony\Component\DependencyInjection\Loader

Code

private function parseParameters(\DOMDocument $xml) {
  if ($parameters = $this
    ->getChildren($xml->documentElement, 'parameters')) {
    $this->container
      ->getParameterBag()
      ->add($this
      ->getArgumentsAsPhp($parameters[0], 'parameter'));
  }
}