42 public function __invoke(Request $request, Response $response, $args)
45 $this->documentFullPath = base64_decode($request->getAttribute(
'path'));
48 if (!file_exists($this->documentFullPath)) {
49 $this->flash->addMessage(
'error', _(
'Document not found.'));
50 return $response->withRedirect(
'/archive');
54 $this->view->render($response,
'archive/details.twig', $this->
render());
64 'plugins' => parent::getPlugins(),
65 'languageFlag' => parent::getLanguageFlag(),
66 'document' =>
new Document($this->documentFullPath)
__invoke(Request $request, Response $response, $args)
registerPlugin($name, $type=PluginType::NORMAL)
__construct(Twig $view, LoggerInterface $logger, Messages $flash)