38 public function __invoke(Request $request, Response $response, $args)
41 $this->documentFullPath = base64_decode($request->getAttribute(
'path'));
44 if (!file_exists($this->documentFullPath)) {
45 $this->flash->addMessage(
'error', _(
'Document not found.'));
46 return $response->withRedirect(
'/latest');
50 $this->view->render($response,
'archive/confirm_details.twig', $this->
render());
57 'plugins' => parent::getPlugins(),
58 'document' =>
new Document($this->documentFullPath)
registerPlugin($name, $type=PluginType::NORMAL)
__construct(Twig $view, LoggerInterface $logger, Messages $flash)
__invoke(Request $request, Response $response, $args)