* Set default config to config.php.
*
* @param config config.php
*/
private void setDefaultConfig(FileObject config) {
FuelPhpOptions options = FuelPhpOptions.getInstance();
if (options.isDefaultConfig()) {
try {
// write
OutputStream outputStream = config.getOutputStream();
PrintWriter pw = new PrintWriter(new OutputStreamWriter(outputStream, "UTF-8"), true); // NOI18N
try {
pw.write(options.getDefaultConfig());
} finally {
pw.close();
}
} catch (FileAlreadyLockedException ex) {
Exceptions.printStackTrace(ex);