protected function getLoader($type)
    {
        if (!isset($this->loaders[$type])) {
            throw new \InvalidArgumentException("No loader defined for type '${type}'.");
        }

        return $this->loaders[$type];
    }
protected function getLoader($type)
    {
        if (!isset($this->loaders[$type])) {
            throw new \InvalidArgumentException("No loader defined for type '${type}'.");
        }

        return $this->loaders[$type];
    }
protected function getLoader ( $ type ) { if ( ! isset ( $ this -> loaders [ $ type ] ) ) { throw new \ InvalidArgumentException ( "No loader defined for type '${type}'." ) ; } return $ this -> loaders [ $ type ] ; }
Get the resource loader for a given type

@param string $type the resource type

@return ResourceLoaderInterface the resource loader

@throws \InvalidArgumentException if no loader defined for the given type
Get the resource loader for a given type