catch (ClientException
$exception) { throw new StoreApiException($exception);
} return new JsonResponse(['data' =>
$domainStruct]);
} #[Route(path: '/api/_action/store/frw/finish', name: 'api.custom.store.frw.finish', methods: ['POST'])]
public function frwFinish(QueryDataBag
$params, Context
$context): JsonResponse
{ $failed =
$params->
getBoolean('failed'
);
$this->frwService->
finishFrw($failed,
$context);
try { $this->frwService->
upgradeAccessToken($context);
} catch (\Exception
) { } return new JsonResponse();
}}