move constructor to command base class
[shpub.git] / src / shpub / Command / AbstractProps.php
index 08dbc97c21467756df42de795956d5cd0317e150..6d7ef3b8c27c346ca87f0cff8feedafbe56a70ea 100644 (file)
@@ -6,6 +6,16 @@ namespace shpub;
  */
 class Command_AbstractProps
 {
+    /**
+     * @var Config
+     */
+    protected $cfg;
+
+    public function __construct($cfg)
+    {
+        $this->cfg = $cfg;
+    }
+
     public static function optsGeneric(\Console_CommandLine_Command $cmd)
     {
         $cmd->addOption(