{ } /**
* @throws AppUrlChangeDetectedException
*/
public function getShopId(): string
{ $shopId =
$this->systemConfigService->
get(self::SHOP_ID_SYSTEM_CONFIG_KEY
);
if (!\
is_array($shopId)) { $newShopId =
$this->
generateShopId();
$this->systemConfigService->
set(self::SHOP_ID_SYSTEM_CONFIG_KEY,
[ 'app_url' => EnvironmentHelper::
getVariable('APP_URL'
),
'value' =>
$newShopId,
]);
return $newShopId;
} if (EnvironmentHelper::
getVariable('APP_URL'
) !== ($shopId['app_url'
] ?? ''
)) { if ($this->
hasApps()) { /** @var string $appUrl */