getContainerLoader() protected method

protected getContainerLoader ( Symfony\Component\DependencyInjection\ContainerInterface $container )
$container Symfony\Component\DependencyInjection\ContainerInterface
Exemplo n.º 1
0
 protected function getContainerLoader(ContainerInterface $container)
 {
     $loader = parent::getContainerLoader($container);
     $locator = new FileLocator($this);
     // Add additional loader to the resolver
     $resolver = $loader->getResolver();
     $resolver->addLoader(new DirectoryFileLoader($container, $locator));
     return $loader;
 }