src/Loader/ChainedLoader.php
public function resolve($resource)
    {
        foreach ($this->loaders() as $loader) {
            if ($loader->supports($resource)) {
                return $loader;
            }
        }

        throw new LoaderException('No matching loader found.');
    }
public function resolve($resource)
    {
        foreach ($this->loaders() as $loader) {
            if ($loader->supports($resource)) {
                return $loader;
            }
        }

        throw new LoaderException('No matching loader found.');
    }
public function resolve ( $ resource ) { foreach ( $ this -> loaders ( ) as $ loader ) { if ( $ loader -> supports ( $ resource ) ) { return $ loader ; } } throw new LoaderException ( 'No matching loader found.' ) ; }
Resolve a loader.

@param mixed $resource

@return LoaderInterface
Resolve a loader .