Example #1
0
 /**
  * @param Api\Request $request
  *
  * @throws \Exception
  */
 public function validate(Api\Request $request)
 {
     if (!$this->registry->isInstalled($request->getClientId())) {
         throw new \Exception('Unknown client: ' . $request->getClientId());
     }
 }