src/Configurer/AliasesConfigurer.php
public function configure(array $aliases)
    {
        foreach ($aliases as $alias => $config) {
            $this->mm->getMetadataForClassName($config['class'])->getObjectIdentifier()->setAlias($alias);

            $this->mm->addMetadata($alias, $this->amf->createMetadata($config));
            $this->rm->addRepository($alias, $this->rm->getRepositoryForClassName($config['class']));
        }
    }
public function configure(array $aliases)
    {
        foreach ($aliases as $alias => $config) {
            $this->mm->getMetadataForClassName($config['class'])->getObjectIdentifier()->setAlias($alias);

            $this->mm->addMetadata($alias, $this->amf->createMetadata($config));
            $this->rm->addRepository($alias, $this->rm->getRepositoryForClassName($config['class']));
        }
    }
public function configure ( array $ aliases ) { foreach ( $ aliases as $ alias => $ config ) { $ this -> mm -> getMetadataForClassName ( $ config [ 'class' ] ) -> getObjectIdentifier ( ) -> setAlias ( $ alias ) ; $ this -> mm -> addMetadata ( $ alias , $ this -> amf -> createMetadata ( $ config ) ) ; $ this -> rm -> addRepository ( $ alias , $ this -> rm -> getRepositoryForClassName ( $ config [ 'class' ] ) ) ; } }
@param array $aliases

@throws MetadataNotFoundException
@throws RepositoryNotFoundException
@param array $aliases