public function getRepositoryByName($name) { if (!isset($this->configuration[1][$name])) { throw new InvalidArgumentException("Repository '{$name}' does not exist."); } return $this->getRepository($this->configuration[1][$name]); }