public function XmlFileLoader::load in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/routing/Loader/XmlFileLoader.php \Symfony\Component\Routing\Loader\XmlFileLoader::load()
- 8 vendor/symfony/dependency-injection/Loader/XmlFileLoader.php \Symfony\Component\DependencyInjection\Loader\XmlFileLoader::load()
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Loader/XmlFileLoader.php \Symfony\Component\DependencyInjection\Loader\XmlFileLoader::load()
File
- vendor/
symfony/ dependency-injection/ 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);
// extensions
$this
->loadFromExtensions($xml);
// services
$this
->parseDefinitions($xml, $path);
}