Beispiel #1
0
 /**
  * @param Command $command
  * @param Api $api
  *
  * @return Command\Response
  * @throws Exception
  */
 public function execute(Command $command, Api $api)
 {
     $success = $api->prepare($command, $this)->send();
     if ($success === FALSE) {
         return false;
     }
     return $api->getResponse();
 }