public function confirmGeneration($files)
    {
        $this->stdout("Fixtures will be generated under the path: \n", Console::FG_YELLOW);
        $this->stdout("\t" . Yii::getAlias($this->fixtureDataPath) . "\n\n", Console::FG_GREEN);
        $this->stdout("Templates will be taken from path: \n", Console::FG_YELLOW);
        $this->stdout("\t" . Yii::getAlias($this->templatePath) . "\n\n", Console::FG_GREEN);

        foreach ($files as $fileName) {
            $this->stdout("\t* " . $fileName . "\n", Console::FG_GREEN);
        }

        return $this->confirm('Generate above fixtures?');
    }
public function confirmGeneration($files)
    {
        $this->stdout("Fixtures will be generated under the path: \n", Console::FG_YELLOW);
        $this->stdout("\t" . Yii::getAlias($this->fixtureDataPath) . "\n\n", Console::FG_GREEN);
        $this->stdout("Templates will be taken from path: \n", Console::FG_YELLOW);
        $this->stdout("\t" . Yii::getAlias($this->templatePath) . "\n\n", Console::FG_GREEN);

        foreach ($files as $fileName) {
            $this->stdout("\t* " . $fileName . "\n", Console::FG_GREEN);
        }

        return $this->confirm('Generate above fixtures?');
    }
public function confirmGeneration ( $ files ) { $ this -> stdout ( "Fixtures will be generated under the path: \n" , Console :: FG_YELLOW ) ; $ this -> stdout ( "\t" . Yii :: getAlias ( $ this -> fixtureDataPath ) . "\n\n" , Console :: FG_GREEN ) ; $ this -> stdout ( "Templates will be taken from path: \n" , Console :: FG_YELLOW ) ; $ this -> stdout ( "\t" . Yii :: getAlias ( $ this -> templatePath ) . "\n\n" , Console :: FG_GREEN ) ; foreach ( $ files as $ fileName ) { $ this -> stdout ( "\t* " . $ fileName . "\n" , Console :: FG_GREEN ) ; } return $ this -> confirm ( 'Generate above fixtures?' ) ; }
Prompts user with message if he confirm generation with given fixture templates files.
@param array $files
@return bool
Prompts user with message if he confirm generation with given fixture templates files .