repository || ! class_exists($this->repository) && ! interface_exists($this->repository)) { throw new RuntimeException(sprintf('Cannot detect the repository of %s', static::class)); } return $this->getContainer()->get($this->repository); } }