| Conditions | 2 |
| Paths | 2 |
| Total Lines | 24 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function indexAction(Request $request, $schemaName = null) |
||
| 23 | { |
||
| 24 | if (null === $schemaName) { |
||
| 25 | $endpoint = $this->generateUrl('overblog_graphql_endpoint', [ |
||
| 26 | 'access_token' => $request->query->get('access_token'), |
||
| 27 | ]); |
||
| 28 | } else { |
||
| 29 | $endpoint = $this->generateUrl('overblog_graphql_multiple_endpoint', [ |
||
| 30 | 'schemaName' => $schemaName, |
||
| 31 | 'access_token' => $request->query->get('access_token'), |
||
| 32 | ]); |
||
| 33 | } |
||
| 34 | |||
| 35 | return $this->render( |
||
| 36 | $this->getParameter('overblog_graphql.graphiql_template'), |
||
| 37 | [ |
||
| 38 | 'endpoint' => $endpoint, |
||
| 39 | 'versions' => [ |
||
| 40 | 'graphiql' => $this->getParameter('overblog_graphql.versions.graphiql'), |
||
| 41 | 'react' => $this->getParameter('overblog_graphql.versions.react'), |
||
| 42 | ], |
||
| 43 | ] |
||
| 44 | ); |
||
| 45 | } |
||
| 46 | } |
||
| 47 |