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