From: Chuck Hagenbuch Date: Sat, 24 Jul 2010 20:08:06 +0000 (-0400) Subject: Make this class friendlier to injection by moving $path to a setter X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=025d94651802727f7ce4dccb74aacda2fdad7449;p=horde.git Make this class friendlier to injection by moving $path to a setter --- diff --git a/framework/Controller/lib/Horde/Controller/Request/Http.php b/framework/Controller/lib/Horde/Controller/Request/Http.php index 24f1ca05b..6be59da6f 100644 --- a/framework/Controller/lib/Horde/Controller/Request/Http.php +++ b/framework/Controller/lib/Horde/Controller/Request/Http.php @@ -7,24 +7,23 @@ */ class Horde_Controller_Request_Http implements Horde_Controller_Request { + /** + * Request path + * @var string + */ protected $_path; /** - * All the headers. + * All the headers * @var array */ protected $_headers = null; - /*########################################################################## - # Construct/Destruct - ##########################################################################*/ - - public function __construct($path) + public function setPath($path) { $this->_path = $path; } - public function getPath() { return $this->_path;