public function addRepository($repositoryClass, $serviceId, $entityClass)
    {
        $repositoryDefinition = $this->definitionFactory->build($repositoryClass, $serviceId, $entityClass);

        // this array is not ordered by slug
        $this->definitions[] = $repositoryDefinition;
    }