protected function validateInstallerInstall()
    {
        $handlers = $this->install->getHandlers();

        if (count($handlers) >= 2) {

            $options = array();
            foreach ($handlers as $id => $handler) {
                $options[$id] = $handler['title'];
            }

            $input = $this->menu($options, 'default', $this->text('Installation profile (enter a number)'));

            if (!$this->isValidInput($input, 'installer', 'install')) {
                $this->errors();
                $this->validateInstallerInstall();
            }
        }
    }
protected function validateInstallerInstall()
    {
        $handlers = $this->install->getHandlers();

        if (count($handlers) >= 2) {

            $options = array();
            foreach ($handlers as $id => $handler) {
                $options[$id] = $handler['title'];
            }

            $input = $this->menu($options, 'default', $this->text('Installation profile (enter a number)'));

            if (!$this->isValidInput($input, 'installer', 'install')) {
                $this->errors();
                $this->validateInstallerInstall();
            }
        }
    }
protected function validateInstallerInstall ( ) { $ handlers = $ this -> install -> getHandlers ( ) ; if ( count ( $ handlers ) >= 2 ) { $ options = array ( ) ; foreach ( $ handlers as $ id => $ handler ) { $ options [ $ id ] = $ handler [ 'title' ] ; } $ input = $ this -> menu ( $ options , 'default' , $ this -> text ( 'Installation profile (enter a number)' ) ) ; if ( ! $ this -> isValidInput ( $ input , 'installer' , 'install' ) ) { $ this -> errors ( ) ; $ this -> validateInstallerInstall ( ) ; } } }
Validates installation profile input
Validates installation profile input