code: 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']));
          }
      }
docs: @param array $aliases
  
  @throws MetadataNotFoundException
  @throws RepositoryNotFoundException