public function addRepositoryDefinition(RepositoryDefinitionInterface $repositoryDefinition)
    {
        $slug = $repositoryDefinition->getSlug();

        if (isset($this->repositoriesBySlug[$slug])) {
            throw new DomainErrorException('Two repositories has the same "'.$slug.'" slug!');
        }

        $this->repositoriesBySlug[$slug] = $repositoryDefinition;
    }
public function addRepositoryDefinition(RepositoryDefinitionInterface $repositoryDefinition)
    {
        $slug = $repositoryDefinition->getSlug();

        if (isset($this->repositoriesBySlug[$slug])) {
            throw new DomainErrorException('Two repositories has the same "'.$slug.'" slug!');
        }

        $this->repositoriesBySlug[$slug] = $repositoryDefinition;
    }
public function addRepositoryDefinition ( RepositoryDefinitionInterface $ repositoryDefinition ) { $ slug = $ repositoryDefinition -> getSlug ( ) ; if ( isset ( $ this -> repositoriesBySlug [ $ slug ] ) ) { throw new DomainErrorException ( 'Two repositories has the same "' . $ slug . '" slug!' ) ; } $ this -> repositoriesBySlug [ $ slug ] = $ repositoryDefinition ; }
Add a repository definition to the pool

@param RepositoryDefinitionInterface $repositoryDefinition
@throws DomainErrorException
Add a repository definition to the pool