Пример #1
0
 /**
  * Method to determine if this parser can handle the query parameters. If so then the parser should return true
  * and be able to return a DTQueryConfiguration
  *
  * @return bool true if the parser is able to parse the query parameters and to return a DTQueryConfiguration
  */
 public function canParseRequest()
 {
     $request = $this->requestStack->getCurrentRequest();
     if (is_null($request)) {
         throw new \InvalidArgumentException("Can not determine a request that is null");
     }
     return $this->queryParser->canParse($request);
 }
Пример #2
0
 /**
  * Method to determine if this parser can handle the query parameters. If so then the parser should return true
  * and be able to return a DTQueryConfiguration
  *
  * @return bool true if the parser is able to parse the query parameters and to return a DTQueryConfiguration
  */
 public function canParseRequest()
 {
     return $this->queryParser->canParse($this->getRequest());
 }