/**
  * {@inheritdoc}
  */
 public function process($item)
 {
     if ($this->strategy) {
         $this->strategy->setImportExportContext($this->importExportContext);
         $item = $this->strategy->process($item);
     }
     return $item;
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function process($item)
 {
     if ($this->dataConverter) {
         $item = $this->dataConverter->convertToImportFormat($item, false);
     }
     $this->context->setValue('itemData', $item);
     $object = $this->serializer->deserialize($item, $this->context->getOption('entityName'), null, $this->context->getConfiguration());
     if ($this->strategy) {
         $object = $this->strategy->process($object);
     }
     return $object ?: null;
 }