Skip to content

Commit 008627c

Browse files
committed
Avoid overwriting 'final' getParameter() method
1 parent 731ebb0 commit 008627c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Controller/GraphQLController.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ public function defaultAction()
5757
return $this->executeQuery($queryData['query'], $queryData['variables']);
5858
}, $queries);
5959

60-
$response = new JsonResponse($isMultiQueryRequest ? $queryResponses : $queryResponses[0], 200, $this->getParameter('graphql.response.headers'));
60+
$response = new JsonResponse($isMultiQueryRequest ? $queryResponses : $queryResponses[0], 200, $this->getParam('graphql.response.headers'));
6161

62-
if ($this->getParameter('graphql.response.json_pretty')) {
62+
if ($this->getParam('graphql.response.json_pretty')) {
6363
$response->setEncodingOptions($response->getEncodingOptions() | JSON_PRETTY_PRINT);
6464
}
6565

@@ -188,15 +188,15 @@ protected function makeSchemaService()
188188
*/
189189
protected function getSchemaClass()
190190
{
191-
return $this->getParameter('graphql.schema_class');
191+
return $this->getParam('graphql.schema_class');
192192
}
193193

194194
/**
195195
* @return string
196196
*/
197197
protected function getSchemaService()
198198
{
199-
$serviceName = $this->getParameter('graphql.schema_service');
199+
$serviceName = $this->getParam('graphql.schema_service');
200200

201201
if (substr($serviceName ?: '', 0, 1) === '@') {
202202
return substr($serviceName, 1, strlen($serviceName) - 1);
@@ -207,10 +207,10 @@ protected function getSchemaService()
207207

208208
protected function getResponseHeaders()
209209
{
210-
return $this->getParameter('graphql.response.headers');
210+
return $this->getParam('graphql.response.headers');
211211
}
212212

213-
protected function getParameter(string $name): array|bool|string|int|float|\UnitEnum|null
213+
protected function getParam(string $name): array|bool|string|int|float|\UnitEnum|null
214214
{
215215
return $this->params->get($name);
216216
}

0 commit comments

Comments
 (0)