Default404Page.class.php 323 B

123456789101112131415161718192021
  1. <?php
  2. class Default404Page
  3. {
  4. public static function getInstance()
  5. {
  6. return new Default404Page(new TwigWrapper("/var/www/views"));
  7. }
  8. private $twig;
  9. public function __construct(TwigWrapper $twig)
  10. {
  11. $this->twig = $twig;
  12. }
  13. public function display()
  14. {
  15. return $this->twig->render('404page.html', array());
  16. }
  17. }