| @@ 86-94 (lines=9) @@ | ||
| 83 | * |
|
| 84 | * @return void |
|
| 85 | */ |
|
| 86 | public static function createAppConfig($dir, $io) |
|
| 87 | { |
|
| 88 | $appConfig = $dir . '/config/app.php'; |
|
| 89 | $defaultConfig = $dir . '/config/app.default.php'; |
|
| 90 | if (!file_exists($appConfig)) { |
|
| 91 | copy($defaultConfig, $appConfig); |
|
| 92 | $io->write('Created `config/app.php` file'); |
|
| 93 | } |
|
| 94 | } |
|
| 95 | ||
| 96 | /** |
|
| 97 | * Create the config/database.php file if it does not exist. |
|
| @@ 104-112 (lines=9) @@ | ||
| 101 | * |
|
| 102 | * @return void |
|
| 103 | */ |
|
| 104 | public static function createDatabaseConfig($dir, $io) |
|
| 105 | { |
|
| 106 | $databaseConfig = $dir . '/config/database.php'; |
|
| 107 | $defaultConfig = $dir . '/config/database.default.php'; |
|
| 108 | if (!file_exists($databaseConfig)) { |
|
| 109 | copy($defaultConfig, $databaseConfig); |
|
| 110 | $io->write('Created `config/database.php` file'); |
|
| 111 | } |
|
| 112 | } |
|
| 113 | ||
| 114 | /** |
|
| 115 | * Create the config/email.php file if it does not exist. |
|
| @@ 122-130 (lines=9) @@ | ||
| 119 | * |
|
| 120 | * @return void |
|
| 121 | */ |
|
| 122 | public static function createEmailConfig($dir, $io) |
|
| 123 | { |
|
| 124 | $databaseConfig = $dir . '/config/email.php'; |
|
| 125 | $defaultConfig = $dir . '/config/email.default.php'; |
|
| 126 | if (!file_exists($databaseConfig)) { |
|
| 127 | copy($defaultConfig, $databaseConfig); |
|
| 128 | $io->write('Created `config/email.php` file'); |
|
| 129 | } |
|
| 130 | } |
|
| 131 | ||
| 132 | /** |
|
| 133 | * Create the `logs` and `tmp` directories. |
|
| @@ 169-177 (lines=9) @@ | ||
| 166 | * |
|
| 167 | * @return void |
|
| 168 | */ |
|
| 169 | public static function createRecaptchaConfig($dir, $io) |
|
| 170 | { |
|
| 171 | $appConfig = $dir . '/config/recaptcha.php'; |
|
| 172 | $defaultConfig = $dir . '/config/recaptcha.default.php'; |
|
| 173 | if (!file_exists($appConfig)) { |
|
| 174 | copy($defaultConfig, $appConfig); |
|
| 175 | $io->write('Created `config/recaptcha.php` file'); |
|
| 176 | } |
|
| 177 | } |
|
| 178 | ||
| 179 | /** |
|
| 180 | * Set globally writable permissions on the "tmp" and "logs" directory. |
|