public function __construct($notFoundPage, Storage $storage, TemplateChooser $templateChooser, TwigEnvironment $twig, Render $render) { $this->notFoundPage = $notFoundPage; $this->storage = $storage; $this->templateChooser = $templateChooser; $this->twig = $twig; $this->render = $render; }