From d90e118f5613ea1b2a2c6798985b5c8f0c729e74 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Sun, 11 Mar 2018 18:14:34 -0500 Subject: [PATCH] Move vaCentral config to its own config file and ServiceProvider --- app/Providers/vaCentralServiceProvider.php | 19 +++++++++++++++++++ config/app.php | 1 + config/vacentral.php | 16 ++++++++++++++++ resources/stubs/installer/config.stub | 6 ++++-- 4 files changed, 40 insertions(+), 2 deletions(-) create mode 100755 app/Providers/vaCentralServiceProvider.php create mode 100644 config/vacentral.php diff --git a/app/Providers/vaCentralServiceProvider.php b/app/Providers/vaCentralServiceProvider.php new file mode 100755 index 00000000..ef3e5187 --- /dev/null +++ b/app/Providers/vaCentralServiceProvider.php @@ -0,0 +1,19 @@ + [ diff --git a/config/vacentral.php b/config/vacentral.php new file mode 100644 index 00000000..d07e525d --- /dev/null +++ b/config/vacentral.php @@ -0,0 +1,16 @@ + env('VACENTRAL_API_KEY', ''), + + /** + * vaCentral API URL. You likely don't need to change this + */ + 'api_url' => 'https://api.vacentral.net', +]; diff --git a/resources/stubs/installer/config.stub b/resources/stubs/installer/config.stub index 8977c7fb..250e214c 100644 --- a/resources/stubs/installer/config.stub +++ b/resources/stubs/installer/config.stub @@ -19,8 +19,6 @@ return [ # overrides phpvms.php 'phpvms' => [ - 'vacentral_api_key' => '', - /** * The ISO "Currency Code" to use, the list is in config/money.php * @@ -35,6 +33,10 @@ return [ 'default' => 'default', ], + 'vacentral' => [ + 'api_key' => '', + ], + # overrides cache.php 'cache' => [ 'default' => '$CACHE_DRIVER$',