From e4ceb84aafb5e1fb3bdff3d2d8653bfe03fbb99d Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Wed, 26 Aug 2015 10:33:41 +0200 Subject: [PATCH] Extract method --- framework/core/src/Install/Console/InstallCommand.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/framework/core/src/Install/Console/InstallCommand.php b/framework/core/src/Install/Console/InstallCommand.php index e88025497..8864a1f23 100644 --- a/framework/core/src/Install/Console/InstallCommand.php +++ b/framework/core/src/Install/Console/InstallCommand.php @@ -106,7 +106,7 @@ class InstallCommand extends Command $this->enableBundledExtensions(); } catch (Exception $e) { - @unlink(base_path('../config.php')); + @unlink($this->getConfigFile()); throw $e; } @@ -139,7 +139,7 @@ class InstallCommand extends Command $this->info('Writing config'); file_put_contents( - base_path('../config.php'), + $this->getConfigFile(), '