From 2a583d9320e864b19d295d78e3a237837a0ccab1 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Thu, 11 Mar 2010 10:40:31 +0000 Subject: [PATCH] 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 --- core/control/RequestHandler.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/control/RequestHandler.php b/core/control/RequestHandler.php index cc7028721..f62119595 100755 --- a/core/control/RequestHandler.php +++ b/core/control/RequestHandler.php @@ -90,13 +90,12 @@ class RequestHandler extends ViewableData { * action will return an array of data with which to * 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 * @uses SS_HTTPRequest * @uses SS_HTTPRequest->match() * @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 = ($this->class) ? $this->class : get_class($this);