@@ 43-50 (lines=8) @@ | ||
40 | * |
|
41 | * @return bool true if the parser is able to parse the query parameters and to return a DTQueryConfiguration |
|
42 | */ |
|
43 | public function canParseRequest() |
|
44 | { |
|
45 | $request = $this->requestStack->getCurrentRequest(); |
|
46 | if (is_null($request)) { |
|
47 | throw new \InvalidArgumentException("Can not determine a request that is null"); |
|
48 | } |
|
49 | return $this->queryParser->canParse($request); |
|
50 | } |
|
51 | ||
52 | /** |
|
53 | * Method that should parse the request and return a DTQueryConfiguration |
|
@@ 59-66 (lines=8) @@ | ||
56 | * |
|
57 | * @return QueryConfiguration the configuration the provider can use to prepare the data |
|
58 | */ |
|
59 | public function parseRequest(array $columnConfiguration) |
|
60 | { |
|
61 | $request = $this->requestStack->getCurrentRequest(); |
|
62 | if (is_null($request)) { |
|
63 | throw new \InvalidArgumentException("Can not parse a request that is null"); |
|
64 | } |
|
65 | return $this->queryParser->parse($request, $columnConfiguration); |
|
66 | } |
|
67 | ||
68 | /** |
|
69 | * Is responsible to take the generated data and prepare a response for it. |