Esempio n. 1
0
 /**
  * @param array $configuration
  * @return $this
  */
 protected function createImport(array $configuration)
 {
     if (!isset($configuration['createImport']) && !is_array($configuration['createImport'])) {
         return $this;
     }
     foreach ($configuration['createImport'] as $create) {
         $strategy = $this->strategyRepository->findByUid((int) $create['importId']);
         if ($strategy instanceof Strategy) {
             $filepath = isset($create['filepath']) ? $create['filepath'] : '';
             $this->importService->addToQueue($filepath, $strategy, $create);
         }
     }
     return $this;
 }
Esempio n. 2
0
 /**
  * @param string $identifier
  */
 public function importAction($identifier)
 {
     $file = $this->resourceFactory->getObjectFromCombinedIdentifier($identifier);
     $this->view->assign('file', $file);
     $this->view->assign('strategies', $this->strategyRepository->findAllUser());
 }