public function getRepository(string $name): RepositoryInterface
    {
        if (isset($this->repositories[$name])) {
            return $this->repositories[$name];
        }

        throw new \LogicException(sprintf('Unknown repository "%s"', $name));
    }