protected function initConfig($file) {
		if(file_exists($this->dir.'/'.$file)) {
			if(!$this->confirm('Do you want to override "'.$file.'"?'))
				return;
		}

		$config = file_get_contents(__DIR__.'/stubs/'.$file.'.stub');
		$key = \Asgard\Common\Tools::randStr(10);
		$config = str_replace('_KEY_', $key, $config);

		if(\Asgard\File\FileSystem::write($this->dir.'/'.$file, $config))
			$this->info('Configuration file "'.$file.'" created with success.');
		else
			$this->error('Configuration file "'.$file.'" creation failed.');
	}
protected function initConfig($file) {
		if(file_exists($this->dir.'/'.$file)) {
			if(!$this->confirm('Do you want to override "'.$file.'"?'))
				return;
		}

		$config = file_get_contents(__DIR__.'/stubs/'.$file.'.stub');
		$key = \Asgard\Common\Tools::randStr(10);
		$config = str_replace('_KEY_', $key, $config);

		if(\Asgard\File\FileSystem::write($this->dir.'/'.$file, $config))
			$this->info('Configuration file "'.$file.'" created with success.');
		else
			$this->error('Configuration file "'.$file.'" creation failed.');
	}
protected function initConfig ( $ file ) { if ( file_exists ( $ this -> dir . '/' . $ file ) ) { if ( ! $ this -> confirm ( 'Do you want to override "' . $ file . '"?' ) ) return ; } $ config = file_get_contents ( __DIR__ . '/stubs/' . $ file . '.stub' ) ; $ key = \ Asgard \ Common \ Tools :: randStr ( 10 ) ; $ config = str_replace ( '_KEY_' , $ key , $ config ) ; if ( \ Asgard \ File \ FileSystem :: write ( $ this -> dir . '/' . $ file , $ config ) ) $ this -> info ( 'Configuration file "' . $ file . '" created with success.' ) ; else $ this -> error ( 'Configuration file "' . $ file . '" creation failed.' ) ; }
Initialize a configuration file.
@param  string $file
Initialize a configuration file .