/**
  * @param PagePresenter $presenter
  * @param mixed $code
  */
 public function invoke($presenter, $code)
 {
     $error = in_array($code, array(404, 500)) ? $code : '4xx';
     return $presenter->view("errors/{$error}");
 }
 /**
  * @param PagePresenter $presenter
  * @param mixed $url
  */
 public function invoke($presenter, $url)
 {
     $template = $presenter->view($url);
     $template->url = $url;
     return $template;
 }