protected function Kernel::getContainerLoader

Returns a loader for the container.

Parameters

ContainerInterface $container The service container:

Return value

DelegatingLoader The loader

1 call to Kernel::getContainerLoader()
Kernel::buildContainer in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php
Builds the service container.

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php, line 731

Class

Kernel
The Kernel is the heart of the Symfony system.

Namespace

Symfony\Component\HttpKernel

Code

protected function getContainerLoader(ContainerInterface $container) {
  $locator = new FileLocator($this);
  $resolver = new LoaderResolver(array(
    new XmlFileLoader($container, $locator),
    new YamlFileLoader($container, $locator),
    new IniFileLoader($container, $locator),
    new PhpFileLoader($container, $locator),
    new ClosureLoader($container),
  ));
  return new DelegatingLoader($resolver);
}