validateQueryParams() public method

According to the JSON API specification "Implementation specific query parameters MUST adhere to the same constraints as member names with the additional requirement that they MUST contain at least one non a-z character (U+0061 to U+007A)".
public validateQueryParams ( )
示例#1
0
 /**
  * @param \WoohooLabs\Yin\JsonApi\Request\RequestInterface $request
  * @throws \Exception
  */
 public function validateQueryParams(RequestInterface $request)
 {
     try {
         $request->validateQueryParams();
     } catch (QueryParamUnrecognized $e) {
         throw $this->exceptionFactory->createQueryParamUnrecognizedException($request, $e->getUnrecognizedQueryParam());
     }
 }