Lines
100.00%
8 / 8
Methods
100.00%
1 / 1
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __invoke | 100.00% | 8 / 8 | 100.00% | 1 / 1 | 1 | ||
| 18 | class AboutController extends BaseController | |
| 19 | { | |
| 20 | public function __invoke( | |
| 21 | #[Autowire('%kernel.project_dir%')] string $projectDir, | |
| 22 | KernelInterface $kernel | |
| 23 | ): Response { | |
| 24 | $output = new BufferedOutput(); | |
| 25 | ||
| 26 | $application = new Application($kernel); | |
| 27 | $application->setAutoExit(false); | |
| 28 | $application->run(new ArrayInput(['command' => 'about']), $output); | |
| 29 | ||
| 30 | return $this->render('system/about.html.twig', [ | |
| 31 | 'project_dir' => $projectDir, | |
| 32 | 'systemInfo' => $output->fetch(), | |
| 33 | ]); | |
| 34 | } | |
| 35 | } |