*/
class DelegatingLoader extends Loader
{
- /**
- * Constructor.
- *
- * @param LoaderResolverInterface $resolver A LoaderResolverInterface instance
- */
public function __construct(LoaderResolverInterface $resolver)
{
$this->resolver = $resolver;
public function load($resource, $type = null)
{
if (false === $loader = $this->resolver->resolve($resource, $type)) {
- throw new FileLoaderLoadException($resource);
+ throw new FileLoaderLoadException($resource, null, null, null, $type);
}
return $loader->load($resource, $type);