/**
* Returns the repository for the given path information
*
* @param array $pathInfo An array containing information about the path
* @return RepositoryInterface
*/
protected function getRepository(array $pathInfo)
{
if ($pathInfo['host'] === PathInformationInterface::GLOBAL_PATH_HOST) {
return $this->createRepositoryForPath($pathInfo['path']);
} else {
return $this->map->getRepository($pathInfo['host']);
}
}