string
$projectDir ) { $this->jwtDir =
$projectDir . '/config/jwt';
} #[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'
);
}