Make this class friendlier to injection by moving $path to a setter
authorChuck Hagenbuch <chuck@horde.org>
Sat, 24 Jul 2010 20:08:06 +0000 (16:08 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Sat, 24 Jul 2010 20:08:06 +0000 (16:08 -0400)
framework/Controller/lib/Horde/Controller/Request/Http.php

index 24f1ca0..6be59da 100644 (file)
@@ -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;