Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | final class GraphQlPlaygroundAction |
||
28 | { |
||
29 | private $twig; |
||
30 | private $router; |
||
31 | private $graphQlPlaygroundEnabled; |
||
32 | private $title; |
||
33 | |||
34 | public function __construct(TwigEnvironment $twig, RouterInterface $router, bool $graphQlPlaygroundEnabled = false, string $title = '') |
||
35 | { |
||
36 | $this->twig = $twig; |
||
37 | $this->router = $router; |
||
38 | $this->graphQlPlaygroundEnabled = $graphQlPlaygroundEnabled; |
||
39 | $this->title = $title; |
||
40 | } |
||
41 | |||
42 | public function __invoke(Request $request): Response |
||
52 | } |
||
53 | } |
||
54 |