From 94d2913f090222d990f887dbe17027c3ea32763d Mon Sep 17 00:00:00 2001 From: Andrew Short Date: Tue, 13 Oct 2009 02:43:30 +0000 Subject: [PATCH] API CHANGE: HTTPRequest and HTTPResponse no longer inherit from Object, since they should not be extended. From: Andrew Short git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@88797 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/control/HTTPRequest.php | 4 +--- core/control/HTTPResponse.php | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/core/control/HTTPRequest.php b/core/control/HTTPRequest.php index 974361cc6..126c2e14e 100755 --- a/core/control/HTTPRequest.php +++ b/core/control/HTTPRequest.php @@ -14,7 +14,7 @@ * @package sapphire * @subpackage control */ -class HTTPRequest extends Object implements ArrayAccess { +class HTTPRequest implements ArrayAccess { /** * @var string $url @@ -102,8 +102,6 @@ class HTTPRequest extends Object implements ArrayAccess { $this->getVars = (array)$getVars; $this->postVars = (array)$postVars; $this->body = $body; - - parent::__construct(); } function isGET() { diff --git a/core/control/HTTPResponse.php b/core/control/HTTPResponse.php index bd0c57a9e..a74184f2b 100755 --- a/core/control/HTTPResponse.php +++ b/core/control/HTTPResponse.php @@ -5,7 +5,7 @@ * @package sapphire * @subpackage control */ -class HTTPResponse extends Object { +class HTTPResponse { protected static $status_codes = array( 100 => 'Continue', 101 => 'Switching Protocols', @@ -81,7 +81,6 @@ class HTTPResponse extends Object { * @param $statusDescription The text to be given alongside the status code. This can be accessed by javascript */ function __construct($body = null, $statusCode = null, $statusDescription = null) { - parent::__construct(); $this->body = $body; if($statusCode) $this->setStatusCode($statusCode, $statusDescription); }