Closed
Description
Symfony\Component\HttpKernel\Kernel
// this container's type is ContainerInterface
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 DirectoryLoader($container, $locator),
new ClosureLoader($container),
));
return new DelegatingLoader($resolver);
}
Symfony\Component\DependencyInjection\Loader\FileLoader
// this container's type is ContainerBuilder, but the above,
// this construct function is called, params type is ContainerInterface
public function __construct(ContainerBuilder $container, FileLocatorInterface $locator)
{
$this->container = $container;
parent::__construct($locator);
}