public function getLoader($prefix)
    {
        if (!$this->hasLoader($prefix)) {
            throw new \InvalidArgumentException(sprintf('A loader is not registered for the prefix "%s"', $prefix));
        }

        return $this->loaders[$prefix];
    }
public function getLoader($prefix)
    {
        if (!$this->hasLoader($prefix)) {
            throw new \InvalidArgumentException(sprintf('A loader is not registered for the prefix "%s"', $prefix));
        }

        return $this->loaders[$prefix];
    }
public function getLoader ( $ prefix ) { if ( ! $ this -> hasLoader ( $ prefix ) ) { throw new \ InvalidArgumentException ( sprintf ( 'A loader is not registered for the prefix "%s"' , $ prefix ) ) ; } return $ this -> loaders [ $ prefix ] ; }
Get the loader for the given prefix.

@param string $prefix

@return LoaderInterface
@throws \InvalidArgumentException
Get the loader for the given prefix .