public function registerRepository(string $name, RepositoryInterface $repository)
    {
        if (isset($this->repositories[$name])) {
            throw new \LogicException(sprintf('Links\' Repository "%s" is already registered.', $name));
        }

        $this->repositories[$name] = $repository;
    }
public function registerRepository(string $name, RepositoryInterface $repository)
    {
        if (isset($this->repositories[$name])) {
            throw new \LogicException(sprintf('Links\' Repository "%s" is already registered.', $name));
        }

        $this->repositories[$name] = $repository;
    }
public function registerRepository ( string $ name , RepositoryInterface $ repository ) { if ( isset ( $ this -> repositories [ $ name ] ) ) { throw new \ LogicException ( sprintf ( 'Links\' Repository "%s" is already registered.' , $ name ) ) ; } $ this -> repositories [ $ name ] = $ repository ; }
Register links' repository

@param string              $name
@param RepositoryInterface $repository
Register links repository