Skip to content

Commit

Permalink
Update HTTP.php
Browse files Browse the repository at this point in the history
  • Loading branch information
dracony authored Jan 27, 2017
1 parent f10e927 commit cbe6396
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/PHPixie/Framework/HTTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use PHPixie\Processors\Processor;
use PHPixie\Slice\Data;
use PHPixie\HTTP\Request;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;

Expand Down Expand Up @@ -243,6 +244,16 @@ protected function notFoundProcessor()
$httpConfig->slice('notFoundResponse')
);
}

/**
* Build a page not found response
* @param Request mixed
* @return mixed
*/
public function notFoundResponse($request)
{
return $this->notFoundProcessor()->process($request);
}

/**
* Generate a path from route path and attributes
Expand Down

0 comments on commit cbe6396

Please sign in to comment.