public function XmlFileLoader::load in Service Container 7.2
Same name and namespace in other branches
- 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php \Symfony\Component\DependencyInjection\Loader\XmlFileLoader::load()
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Loader/ XmlFileLoader.php, line 37
Class
- XmlFileLoader
- XmlFileLoader loads XML files service definitions.
Namespace
Symfony\Component\DependencyInjection\LoaderCode
public function load($resource, $type = null) {
$path = $this->locator
->locate($resource);
$xml = $this
->parseFileToDOM($path);
$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);
}