public function askForArray(OutputInterface $output, $question, $default)
    {
        $result = $this->ask($output, $question, $default);
        if (is_string($result)) {
            $result = explode(',', $result);
        }
        if (!is_array($result)) {
            $result = array();
        }
        $result = array_map('trim', $result);

        return $result;
    }
public function askForArray(OutputInterface $output, $question, $default)
    {
        $result = $this->ask($output, $question, $default);
        if (is_string($result)) {
            $result = explode(',', $result);
        }
        if (!is_array($result)) {
            $result = array();
        }
        $result = array_map('trim', $result);

        return $result;
    }
public function askForArray ( OutputInterface $ output , $ question , $ default ) { $ result = $ this -> ask ( $ output , $ question , $ default ) ; if ( is_string ( $ result ) ) { $ result = explode ( ',' , $ result ) ; } if ( ! is_array ( $ result ) ) { $ result = array ( ) ; } $ result = array_map ( 'trim' , $ result ) ; return $ result ; }
Asks for a list of values, the response is split to return an array

@param OutputInterface $output   the command line output
@param string          $question the question to ask
@param string          $default  the default answer

@return array the array of resposne values
Asks for a list of values the response is split to return an array