public function buildRepository(string $key) {
    $repositoryInfo = $this->get($key);

    if (is_null($repositoryInfo)) {
        throw new \Nuki\Exceptions\Base(vsprintf('%1$s is not a registered repository', [$key]));
    }

    $this->validate($repositoryInfo, $key);

    $repository = new $repositoryInfo['Location'];

    return $repository;
  }
public function buildRepository(string $key) {
    $repositoryInfo = $this->get($key);

    if (is_null($repositoryInfo)) {
        throw new \Nuki\Exceptions\Base(vsprintf('%1$s is not a registered repository', [$key]));
    }

    $this->validate($repositoryInfo, $key);

    $repository = new $repositoryInfo['Location'];

    return $repository;
  }
public function buildRepository ( string $ key ) { $ repositoryInfo = $ this -> get ( $ key ) ; if ( is_null ( $ repositoryInfo ) ) { throw new \ Nuki \ Exceptions \ Base ( vsprintf ( '%1$s is not a registered repository' , [ $ key ] ) ) ; } $ this -> validate ( $ repositoryInfo , $ key ) ; $ repository = new $ repositoryInfo [ 'Location' ] ; return $ repository ; }
Build a repository by its key and additional options

@param string $key

@return \Nuki\Skeletons\Providers\Repository

@throws Base
Build a repository by its key and additional options