예제 #1
0
 public function onGroupSelected(Response $response)
 {
     $message = $response->getMessage();
     $this->result = array_combine(['count', 'first', 'last', 'name'], explode(' ', $message));
 }
예제 #2
0
 public function onPostingFailed(Response $response)
 {
     throw new RuntimeException(sprintf('Posting failed: %s', $response->getMessage()), $response->getStatusCode());
 }
예제 #3
0
 /**
  * Return the message's reference.
  *
  * @param Response $response
  */
 public function onFoundPath(Response $response)
 {
     $this->result = $response->getMessage();
 }