'total' => \
count($domains),
]);
} #[Route(path: '/api/_action/store/verify-license-domain', name: 'api.custom.store.verify-license-domain', methods: ['POST'])]
public function verifyDomain(QueryDataBag
$params, Context
$context): JsonResponse
{ $domain =
$params->
get('domain'
) ?? '';
$testEnvironment =
$params->
getBoolean('testEnvironment'
);
try { $domainStruct =
$this->frwService->
verifyLicenseDomain($domain,
$context,
$testEnvironment);
} 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'
);