mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-04 16:51:25 +02:00
BUGFIX RequestHandler::handleRequest is now compatible with Controller::handleRequest in that SS_HTTPRequest is the type hint for the $request parameter
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@100919 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
6a6bb881a4
commit
2a583d9320
@ -90,13 +90,12 @@ class RequestHandler extends ViewableData {
|
|||||||
* action will return an array of data with which to
|
* action will return an array of data with which to
|
||||||
* customise the controller.
|
* customise the controller.
|
||||||
*
|
*
|
||||||
* @param $params The parameters taken from the parsed URL of the parent url handler
|
|
||||||
* @param $request The {@link SS_HTTPRequest} object that is reponsible for distributing URL parsing
|
* @param $request The {@link SS_HTTPRequest} object that is reponsible for distributing URL parsing
|
||||||
* @uses SS_HTTPRequest
|
* @uses SS_HTTPRequest
|
||||||
* @uses SS_HTTPRequest->match()
|
* @uses SS_HTTPRequest->match()
|
||||||
* @return SS_HTTPResponse|RequestHandler|string|array
|
* @return SS_HTTPResponse|RequestHandler|string|array
|
||||||
*/
|
*/
|
||||||
function handleRequest($request) {
|
function handleRequest(SS_HTTPRequest $request) {
|
||||||
// $handlerClass is used to step up the class hierarchy to implement url_handlers inheritance
|
// $handlerClass is used to step up the class hierarchy to implement url_handlers inheritance
|
||||||
$handlerClass = ($this->class) ? $this->class : get_class($this);
|
$handlerClass = ($this->class) ? $this->class : get_class($this);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user