move constructor to command base class
[shpub.git] / src / shpub / Command / Like.php
index fb396be6c7eaf93519d86373615ec8579da2c79a..65020dc04cd832f57e8d6cc95929729bcccf7486 100644 (file)
@@ -3,16 +3,6 @@ namespace shpub;
 
 class Command_Like extends Command_AbstractProps
 {
 
 class Command_Like extends Command_AbstractProps
 {
-    /**
-     * @var Config
-     */
-    protected $cfg;
-
-    public function __construct($cfg)
-    {
-        $this->cfg = $cfg;
-    }
-
     public static function opts(\Console_CommandLine $optParser)
     {
         $cmd = $optParser->addCommand('like');
     public static function opts(\Console_CommandLine $optParser)
     {
         $cmd = $optParser->addCommand('like');
@@ -46,8 +36,8 @@ class Command_Like extends Command_AbstractProps
             Log::err($res->getBody());
             exit(20);
         } else {
             Log::err($res->getBody());
             exit(20);
         } else {
-            echo "Like created at server\n";
-            echo $postUrl . "\n";
+            Log::info('Like created at server');
+            Log::msg($postUrl);
         }
     }
 }
         }
     }
 }