/**
  * @param StringLiteral $id
  * @param CdbXmlContainerInterface $cdbXml
  */
 private function create(StringLiteral $id, CdbXmlContainerInterface $cdbXml)
 {
     $entity = $this->actorFactory->createFromCdbXml((string) $id, $cdbXml->getCdbXml(), $cdbXml->getCdbXmlNamespaceUri());
     $this->repository->save($entity);
 }
Exemplo n.º 2
0
 /**
  * @param StringLiteral $id
  * @param CdbXmlContainerInterface $cdbXml
  */
 private function create(StringLiteral $id, CdbXmlContainerInterface $cdbXml)
 {
     $entity = $this->offerFactory->createFromCdbXml($id, new StringLiteral($cdbXml->getCdbXml()), new StringLiteral($cdbXml->getCdbXmlNamespaceUri()));
     $this->eventRepository->save($entity);
 }