From d12106809f1220e154269fafdb510989a881ab33 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Wed, 26 Aug 2015 10:33:41 +0200 Subject: [PATCH] Extract method --- src/Install/Console/InstallCommand.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Install/Console/InstallCommand.php b/src/Install/Console/InstallCommand.php index e88025497..8864a1f23 100644 --- a/src/Install/Console/InstallCommand.php +++ b/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(), '