Beispiel #1
0
 /**
  * Execute
  *
  * @param InputInterface $input
  * @param OutputInterface $output
  * @throws \Exception
  * @return void
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $this->input = $input;
     $this->output = $output;
     $this->config->setFile($input->getOption("config-file"));
     try {
         $conf = $this->config->get("twi");
         $this->to = new TwistOAuth($conf["ck"], $conf["cs"], $conf["at"], $conf["as"]);
         $this->start();
     } catch (\Exception $e) {
         $this->log->log($e);
         throw $e;
     }
 }