JonathanTorres\Construct\Commands\ConstructCommand::supportedLicenseWarning PHP Method

supportedLicenseWarning() private method

Show warning if a license that is not supported is specified.
private supportedLicenseWarning ( Symfony\Component\Console\Output\OutputInterface $output ) : string
$output Symfony\Component\Console\Output\OutputInterface
return string
    private function supportedLicenseWarning($output)
    {
        $license = $this->settings->getLicense();
        if (!in_array($license, $this->defaults->licenses)) {
            $warning = '<error>Warning: "' . $license . '" is not a supported license. ' . 'Using ' . Defaults::LICENSE . '.</error>';
            $output->writeln($warning);
            $license = Defaults::LICENSE;
        }
        return $license;
    }