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;
    }