private function askAboutDefaultLanguage()
    {
        $languageList = [];
        foreach(Language::ISOlist() as $language){
            $languageList[] = $language->name;
        }

        $languageName = $this->anticipate('What is your site\'s primary language?', $languageList, 'English');
        $this->PRIMARY_LANGUAGE = Language::getISOByName($languageName);
        if(!$this->PRIMARY_LANGUAGE) {
            throw  new \Exception('Langauge could not be found in ISO 639.1 list!');
        }
    }
private function askAboutDefaultLanguage()
    {
        $languageList = [];
        foreach(Language::ISOlist() as $language){
            $languageList[] = $language->name;
        }

        $languageName = $this->anticipate('What is your site\'s primary language?', $languageList, 'English');
        $this->PRIMARY_LANGUAGE = Language::getISOByName($languageName);
        if(!$this->PRIMARY_LANGUAGE) {
            throw  new \Exception('Langauge could not be found in ISO 639.1 list!');
        }
    }
private function askAboutDefaultLanguage ( ) { $ languageList = [ ] ; foreach ( Language :: ISOlist ( ) as $ language ) { $ languageList [ ] = $ language -> name ; } $ languageName = $ this -> anticipate ( 'What is your site\'s primary language?' , $ languageList , 'English' ) ; $ this -> PRIMARY_LANGUAGE = Language :: getISOByName ( $ languageName ) ; if ( ! $ this -> PRIMARY_LANGUAGE ) { throw new \ Exception ( 'Langauge could not be found in ISO 639.1 list!' ) ; } }
Ask about default langauge

@throws \Exception
Ask about default langauge