src/Yosymfony/Silex/ConfigServiceProvider/Config.php
public function load($resource, $type = null)
    {
        $repository = $this->delegatingLoader->load($resource, $type);
        
        if(!$repository instanceof ConfigRepositoryInterface)
        {
            throw new \UnexpectedValueException('The loader must return a repository instance');
        }
        
        return $repository;
    }
public function load($resource, $type = null)
    {
        $repository = $this->delegatingLoader->load($resource, $type);
        
        if(!$repository instanceof ConfigRepositoryInterface)
        {
            throw new \UnexpectedValueException('The loader must return a repository instance');
        }
        
        return $repository;
    }
public function load ( $ resource , $ type = null ) { $ repository = $ this -> delegatingLoader -> load ( $ resource , $ type ) ; if ( ! $ repository instanceof ConfigRepositoryInterface ) { throw new \ UnexpectedValueException ( 'The loader must return a repository instance' ) ; } return $ repository ; }
Loads a resource like file or inline configuration

@param string $resource A resource
@param string $type     The resource type. Don't set this argument in files case.

@return ConfigRepositoryInterface

@throws Symfony\Component\Config\Exception\FileLoaderLoadException If the loader not found.
@throws \UnexpectedValueException If the loader not return a repository instance
Loads a resource like file or inline configuration