protected function askForGraph()
    {
        $choices = array_map(function ($name, $config) {
            return $name."\t(".$config['class'].' - '.$config['graph'].')';
        }, array_keys($this->config), $this->config);

        $choice = $this->choice('Which state machine would you like to know about?', $choices, 0);

        $choice = substr($choice, 0, strpos($choice, "\t"));

        $this->info('You have just selected: '.$choice);

        $this->input->setArgument('graph', $choice);
    }
protected function askForGraph()
    {
        $choices = array_map(function ($name, $config) {
            return $name."\t(".$config['class'].' - '.$config['graph'].')';
        }, array_keys($this->config), $this->config);

        $choice = $this->choice('Which state machine would you like to know about?', $choices, 0);

        $choice = substr($choice, 0, strpos($choice, "\t"));

        $this->info('You have just selected: '.$choice);

        $this->input->setArgument('graph', $choice);
    }
protected function askForGraph ( ) { $ choices = array_map ( function ( $ name , $ config ) { return $ name . "\t(" . $ config [ 'class' ] . ' - ' . $ config [ 'graph' ] . ')' ; } , array_keys ( $ this -> config ) , $ this -> config ) ; $ choice = $ this -> choice ( 'Which state machine would you like to know about?' , $ choices , 0 ) ; $ choice = substr ( $ choice , 0 , strpos ( $ choice , "\t" ) ) ; $ this -> info ( 'You have just selected: ' . $ choice ) ; $ this -> input -> setArgument ( 'graph' , $ choice ) ; }
Ask for a graph name if one was not provided as argument.
Ask for a graph name if one was not provided as argument .