You are here

protected function Kernel::getContainerLoader in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Kernel.php \Symfony\Component\HttpKernel\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 vendor/symfony/http-kernel/Kernel.php
Builds the service container.

File

vendor/symfony/http-kernel/Kernel.php, line 680

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);
}