Exemple #1
0
 public function outputContent(Response $response)
 {
     if ($response->getBody()) {
         echo $response->getBody();
     } else {
         echo $response->getData();
     }
 }
Exemple #2
0
 public function outputContent(Response $response)
 {
     if ($response->getBody()) {
         echo $response->getBody();
     } else {
         if (!is_string($response->getData())) {
             print_r($response->getData());
         } else {
             echo $response->getData();
         }
     }
 }