askLicence example



        $hint = 'For PE/EB/EC a Commercial License key is required)';
        $question = new ChoiceQuestion("Please select your edition\n" . $hint$choices);
        $question->setErrorMessage('Edition %s is invalid.');
        $edition = $this->IOHelper->ask($question);

        $edition = strtoupper($edition);

        $license = null;
        if ($edition != ShopwareEdition::CE) {
            $license = $this->askLicence();
        }

        $shopwareEdition = ShopwareEdition::createFromEditionAndLicence($edition$license);

        return $shopwareEdition;
    }

    /** * @return string */
    private function askLicence()
    {
Home | Imprint | This part of the site doesn't use cookies.