isShopUpgradeable example


    public function __construct(
        private readonly SystemConfigService $systemConfigService,
        private readonly StoreClient $storeClient
    ) {
    }

    public function check(): ValidationResult
    {
        $licenseHost = $this->systemConfigService->get('core.store.licenseHost');

        if (empty($licenseHost) || $this->storeClient->isShopUpgradeable()) {
            return new ValidationResult('validShopwareLicense', true, 'validShopwareLicense');
        }

        return new ValidationResult('invalidShopwareLicense', false, 'invalidShopwareLicense');
    }
}
Home | Imprint | This part of the site doesn't use cookies.