#[Route(path: '/installer/requirements', name: 'installer.requirements', methods: ['GET', 'POST'])]
public function requirements(Request
$request): Response
{ $checks =
new RequirementsCheckCollection();
foreach ($this->validators
as $validator) { $checks =
$validator->
validateRequirements($checks);
} if ($request->
isMethod('POST'
) && !
$checks->
hasError()) { // The JWT dir exist and is writable, so we generate a new key pair
$this->jwtCertificateGenerator->
generate( $this->jwtDir . '/private.pem',
$this->jwtDir . '/public.pem'
);
return $this->
redirectToRoute('installer.license'
);
} return $this->
renderInstaller('@Installer/installer/requirements.html.twig',
['requirementChecks' =>
$checks]);
}}