| @@ 99-107 (lines=9) @@ | ||
| 96 | * @param \Composer\IO\IOInterface $io IO interface to write to console. |
|
| 97 | * @return void |
|
| 98 | */ |
|
| 99 | public static function createAppConfig($dir, $io) |
|
| 100 | { |
|
| 101 | $appConfig = $dir . '/config/app.php'; |
|
| 102 | $defaultConfig = $dir . '/config/app.default.php'; |
|
| 103 | if (!file_exists($appConfig)) { |
|
| 104 | copy($defaultConfig, $appConfig); |
|
| 105 | $io->write('Created `config/app.php` file'); |
|
| 106 | } |
|
| 107 | } |
|
| 108 | ||
| 109 | /** |
|
| 110 | * Create the config/.env file if it does not exist. |
|
| @@ 116-124 (lines=9) @@ | ||
| 113 | * @param \Composer\IO\IOInterface $io IO interface to write to console. |
|
| 114 | * @return void |
|
| 115 | */ |
|
| 116 | public static function createDotEnvConfig($dir, $io) |
|
| 117 | { |
|
| 118 | $appConfig = $dir . '/config/.env'; |
|
| 119 | $defaultConfig = $dir . '/config/.env.default'; |
|
| 120 | if (!file_exists($appConfig)) { |
|
| 121 | copy($defaultConfig, $appConfig); |
|
| 122 | $io->write('Created `config/.env` file'); |
|
| 123 | } |
|
| 124 | } |
|
| 125 | ||
| 126 | /** |
|
| 127 | * Create the `logs` and `tmp` directories. |
|