CodeExplorer isCommercial example
$progress->
finish();
$this->IOHelper->
writeln(''
);
} private function askShopwareEdition( Shop
$shop,
LicenseUnpackService
$licenseService,
LicenseInstaller
$licenseInstaller ) { $shopwareEdition =
$this->
askEdition();
if (!
$shopwareEdition->
isCommercial()) { return;
} $licenseUnpackRequest =
new LicenseUnpackRequest( $shopwareEdition->licence,
$shop->host
);
try { $licenseInformation =
$licenseService->
evaluateLicense($licenseUnpackRequest);
$licenseInstaller->
installLicense($licenseInformation);
}