move constructor to command base class
[shpub.git] / src / shpub / Command / Note.php
index de6794890711f4d73fd9354c7583ff06370a683e..2e07e9d69765de69d984c233c21692b74208a420 100644 (file)
@@ -3,16 +3,6 @@ namespace shpub;
 
 class Command_Note extends Command_AbstractProps
 {
-    /**
-     * @var Config
-     */
-    protected $cfg;
-
-    public function __construct($cfg)
-    {
-        $this->cfg = $cfg;
-    }
-
     public static function opts(\Console_CommandLine $optParser)
     {
         $cmd = $optParser->addCommand('note');
@@ -36,8 +26,8 @@ class Command_Note extends Command_AbstractProps
 
         $res = $req->send();
         $postUrl = $res->getHeader('Location');
-        echo "Post created at server\n";
-        echo $postUrl . "\n";
+        Log::info('Post created at server');
+        Log::msg($postUrl);
     }
 }
 ?>