/** * Add a request with the given ID. * * @param Request $request * * @return ClientHandler */ public function addRequest(Request $request) { $this->request[$request->getId()] = $request; return $this; }
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; }