示例#1
0
 /**
  * Add a request with the given ID.
  *
  * @param Request $request
  *
  * @return ClientHandler
  */
 public function addRequest(Request $request)
 {
     $this->request[$request->getId()] = $request;
     return $this;
 }
示例#2
0
 public function addRequest(Request $request)
 {
     $actionName = $request->getActionName();
     if (!isset($this->clientRequests[$actionName])) {
         $this->clientRequests[$actionName] = array();
     }
     $this->clientRequests[$actionName][] = $request;
     $this->getLogger()->info('Received new request ' . $request->getId());
     return $this;
 }