You are here

private function XmlFileLoader::parseParameters in Service Container 7.2

Same name and namespace in other branches
  1. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php \Symfony\Component\DependencyInjection\Loader\XmlFileLoader::parseParameters()

Parses parameters.

Parameters

\DOMDocument $xml:

string $file:

1 call to XmlFileLoader::parseParameters()
XmlFileLoader::load in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php, line 75

Class

XmlFileLoader
XmlFileLoader loads XML files service definitions.

Namespace

Symfony\Component\DependencyInjection\Loader

Code

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