/**
  * {@inheritdoc}
  */
 public function load(array $configs, ContainerBuilder $container)
 {
     $fileLocator = new FileLocator(__DIR__ . '/../Resources/config');
     $loader = new DirectoryLoader($container, $fileLocator);
     $loader->setResolver(new LoaderResolver(array(new YamlFileLoader($container, $fileLocator), $loader)));
     $loader->load('services/');
     $this->configureRoutingParameters($container);
     $this->configureClassesToCompile();
 }
 public function testSupports()
 {
     $loader = new DirectoryLoader(new ContainerBuilder(), new FileLocator());
     $this->assertTrue($loader->supports('directory/'), '->supports("directory/") returns true');
     $this->assertTrue($loader->supports('directory/', 'directory'), '->supports("directory/", "directory") returns true');
     $this->assertFalse($loader->supports('directory'), '->supports("directory") returns false');
     $this->assertTrue($loader->supports('directory', 'directory'), '->supports("directory", "directory") returns true');
     $this->assertFalse($loader->supports('directory', 'foo'), '->supports("directory", "foo") returns false');
 }