protected function installCliStep2()
    {
        $title = $this->translation->text('Please select a demo content package (enter a number)');
        $this->data['demo_handler_id'] = $this->cli->menu($this->getDemoOptions(), '', $title);

        if (!empty($this->data['demo_handler_id'])) {

            $this->data['step'] = 2;
            $this->setCliMessage('Installing demo content...');
            $result = $this->installDemo($this->data, $this->db);

            if ($result['severity'] !== 'success') {
                throw new UnexpectedValueException($result['message']);
            }

            $this->setContext('demo_handler_id', $this->data['demo_handler_id']);
        }
    }
protected function installCliStep2()
    {
        $title = $this->translation->text('Please select a demo content package (enter a number)');
        $this->data['demo_handler_id'] = $this->cli->menu($this->getDemoOptions(), '', $title);

        if (!empty($this->data['demo_handler_id'])) {

            $this->data['step'] = 2;
            $this->setCliMessage('Installing demo content...');
            $result = $this->installDemo($this->data, $this->db);

            if ($result['severity'] !== 'success') {
                throw new UnexpectedValueException($result['message']);
            }

            $this->setContext('demo_handler_id', $this->data['demo_handler_id']);
        }
    }
protected function installCliStep2 ( ) { $ title = $ this -> translation -> text ( 'Please select a demo content package (enter a number)' ) ; $ this -> data [ 'demo_handler_id' ] = $ this -> cli -> menu ( $ this -> getDemoOptions ( ) , '' , $ title ) ; if ( ! empty ( $ this -> data [ 'demo_handler_id' ] ) ) { $ this -> data [ 'step' ] = 2 ; $ this -> setCliMessage ( 'Installing demo content...' ) ; $ result = $ this -> installDemo ( $ this -> data , $ this -> db ) ; if ( $ result [ 'severity' ] !== 'success' ) { throw new UnexpectedValueException ( $ result [ 'message' ] ) ; } $ this -> setContext ( 'demo_handler_id' , $ this -> data [ 'demo_handler_id' ] ) ; } }
Process step 2 in CLI mode
@throws UnexpectedValueException
Process step 2 in CLI mode