From 82b5ff620d4169aa6b4680deacfe7804250a1fb9 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Sun, 25 Feb 2018 11:12:27 -0600 Subject: [PATCH] put a minimal config for installer into config dir --- config/installer.php | 10 ++++++++++ modules/Installer/Config/config.php | 4 ++-- .../Installer/Providers/InstallerServiceProvider.php | 5 ++--- 3 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 config/installer.php diff --git a/config/installer.php b/config/installer.php new file mode 100644 index 00000000..743eab58 --- /dev/null +++ b/config/installer.php @@ -0,0 +1,10 @@ + [ + # You can change this to a lower version, the lowest + # can be 7.0. However, there's no guarantee that things + # will work properly. Change at your peril! + 'version' => '7.1.3' + ] +]; diff --git a/modules/Installer/Config/config.php b/modules/Installer/Config/config.php index b71ad2f5..8f66bce2 100644 --- a/modules/Installer/Config/config.php +++ b/modules/Installer/Config/config.php @@ -10,8 +10,8 @@ return [ 'pdo', 'mbstring', 'tokenizer', - 'JSON', - 'cURL', + 'json', + 'curl', ], # Make sure these are writable diff --git a/modules/Installer/Providers/InstallerServiceProvider.php b/modules/Installer/Providers/InstallerServiceProvider.php index cf7f9e21..ad6f1805 100644 --- a/modules/Installer/Providers/InstallerServiceProvider.php +++ b/modules/Installer/Providers/InstallerServiceProvider.php @@ -2,9 +2,8 @@ namespace Modules\Installer\Providers; -use Illuminate\Support\ServiceProvider; use Illuminate\Database\Eloquent\Factory; -use Nwidart\Modules\Support\Stub; +use Illuminate\Support\ServiceProvider; use Route; @@ -60,7 +59,7 @@ class InstallerServiceProvider extends ServiceProvider { $this->publishes([ __DIR__.'/../Config/config.php' => config_path('installer.php'), - ], 'config'); + ], 'installer'); $this->mergeConfigFrom( __DIR__.'/../Config/config.php', 'installer'