next = $next; } /** * @param string $template_name * @param array $data * * @return View_Response */ protected function view( $template_name, array $data = array() ) { return new View_Response( $template_name, $data ); } /** * @param array $body * @param int $status_code * * @return JSON_Response */ protected function json( array $body, $status_code = 200 ) { return new JSON_Response( $body, $status_code ); } /** * @param string $page * @param string $action * * @return Redirection_Response */ protected function redirection( $page, $action = '') { return new Redirection_Response( $page, $action ); } }