From ddce6c221000fa8e11a1ee40fe3568ef82bbd2c7 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Mon, 4 Oct 2010 04:20:49 +0000 Subject: [PATCH] BUGFIX RequestHandler::handleRequest is now compatible with Controller::handleRequest in that SS_HTTPRequest is the type hint for the $request parameter (from r100919) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@111540 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);