createFromEditionAndLicence example

$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()
    {
        return $this->IOHelper->askMultiLineQuestion(
            new Question("Please provide licence. An empty line will exit the input: \n")
        );
Home | Imprint | This part of the site doesn't use cookies.