/** * * @param string $identifier * @param \HDNET\Importr\Domain\Model\Strategy $strategy * * @return void */ public function previewAction($identifier, Strategy $strategy) { $file = $this->resourceFactory->getObjectFromCombinedIdentifier($identifier); $this->view->assign('filepath', $file->getPublicUrl()); $this->view->assign('strategy', $strategy); $previewData = $this->importManager->getPreview($strategy, $file->getPublicUrl()); $this->view->assign('preview', $previewData); }