Esempio n. 1
0
 public function handle(RpcRequestInterface $request)
 {
     if (!array_key_exists($request->getMethod(), $this->handlers)) {
         throw new InvalidMethodException(self::MESSAGE_METHOD_NOT_EXIST);
     }
     return $this->handlers[$request->getMethod()]->handle($request);
 }