Loads an XML file.
mixed $file The resource:
string $type The resource type:
public function load($file, $type = null) {
$path = $this->locator
->locate($file);
$xml = $this
->parseFile($path);
$xml
->registerXPathNamespace('container', 'http://symfony.com/schema/dic/services');
$this->container
->addResource(new FileResource($path));
// anonymous services
$this
->processAnonymousServices($xml, $path);
// imports
$this
->parseImports($xml, $path);
// parameters
$this
->parseParameters($xml, $path);
// extensions
$this
->loadFromExtensions($xml);
// services
$this
->parseDefinitions($xml, $path);
}