Commit 2bfdae8a authored by Nicolas Widart's avatar Nicolas Widart

Squashed 'Modules/Core/' changes from 1f638cf..bf0bbd2

bf0bbd2 Setting the environment variable as mutable during installation

git-subtree-dir: Modules/Core
git-subtree-split: bf0bbd2e314d9d4bda36d36e8afc39e011368098
parent faa1740d
<?php namespace Modules\Core\Console; <?php namespace Modules\Core\Console;
use Dotenv;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use Illuminate\Filesystem\Filesystem; use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Hash;
...@@ -154,6 +155,8 @@ class InstallCommand extends Command ...@@ -154,6 +155,8 @@ class InstallCommand extends Command
*/ */
private function configureEnvironmentFile($databaseName, $databaseUsername, $databasePassword) private function configureEnvironmentFile($databaseName, $databaseUsername, $databasePassword)
{ {
Dotenv::makeMutable();
$environmentFile = $this->finder->get('.env.example'); $environmentFile = $this->finder->get('.env.example');
$search = [ $search = [
...@@ -174,6 +177,8 @@ class InstallCommand extends Command ...@@ -174,6 +177,8 @@ class InstallCommand extends Command
$this->finder->delete('env.example'); $this->finder->delete('env.example');
$this->info('Environment file written'); $this->info('Environment file written');
Dotenv::makeImmutable();
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment