private readonly SetupDatabaseAdapter
$setupDatabaseAdapter,
private readonly DatabaseConnectionFactory
$connectionFactory,
string
$projectDir ) { $this->jwtDir =
$projectDir . '/config/jwt';
} #[Route(path: '/installer/database-configuration', name: 'installer.database-configuration', methods: ['POST', 'GET'])]
public function databaseConfiguration(Request
$request): Response
{ $session =
$request->
getSession();
$connectionInfo =
$session->
get(DatabaseConnectionInformation::
class) ??
new DatabaseConnectionInformation();
if ($request->
isMethod('GET'
)) { return $this->
renderInstaller('@Installer/installer/database-configuration.html.twig',
[ 'connectionInfo' =>
$connectionInfo,
'error' => null,
]);
} $connectionInfo =
(new DatabaseConnectionInformation())->
assign($request->request->
all());
try {