move constructor to command base class
[shpub.git] / src / shpub / Command / AbstractProps.php
index 08dbc97..6d7ef3b 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(