#[Route(path: '/installer/finish', name: 'installer.finish', methods: ['GET'])]
public function finish(Request
$request): Response
{ $this->systemLocker->
lock();
$additionalInformation =
[ 'language' =>
$request->attributes->
get('_locale'
),
'method' => 'installer',
];
$this->notifier->
doTrackEvent(Notifier::EVENT_INSTALL_FINISHED,
$additionalInformation);
$session =
$request->
getSession();
/** @var array<string, string> $adminInfo */
$adminInfo =
$session->
get('ADMIN_USER',
[]);
$data =
[ 'grant_type' => 'password',
'client_id' => 'administration',
'scopes' => 'write',
'username' =>
$adminInfo['username'
] ?? '',
'password' =>
$adminInfo['password'
] ?? '',
];