Change Horde_Db_Migration_Base constructor
authorChuck Hagenbuch <chuck@horde.org>
Sun, 13 Dec 2009 16:55:42 +0000 (11:55 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Sun, 13 Dec 2009 16:55:42 +0000 (11:55 -0500)
framework/Db/lib/Horde/Db/Migration/Base.php

index 34b8944..72cea4c 100644 (file)
@@ -34,7 +34,7 @@ class Horde_Db_Migration_Base
      * @var integer
      */
     public $version = null;
-    
+
     /**
      * Database connection adapter
      * @var Horde_Db_Adapter_Abstract
@@ -48,10 +48,10 @@ class Horde_Db_Migration_Base
 
     /**
      */
-    public function __construct($context)
+    public function __construct(Horde_Db_Adapter_Abstract $connection, $version = null)
     {
-        $this->version = $context['version'];
-        $this->_connection = $context['connection'];
+        $this->_connection = $connection;
+        $this->version = $version;
     }