Add config.php at root; include configuration overhaul and then fixes to the installer #156

This commit is contained in:
Nabeel Shahzad
2018-01-29 13:16:39 -06:00
parent b1759d9276
commit f660af5c3b
17 changed files with 337 additions and 194 deletions

View File

@@ -1,6 +1,6 @@
<?php
use Illuminate\Foundation\Application as LaravelApplication;
use App\Bootstrap\LoadConfiguration;
if (!defined('DS')) {
define('DS', DIRECTORY_SEPARATOR);
@@ -10,7 +10,7 @@ if (!defined('DS')) {
* Customized container to allow some of the base Laravel
* configurations to be overridden
*/
class Application extends LaravelApplication
class Application extends Illuminate\Foundation\Application
{
private $publicDirPath,
$publicUrlPath = '/';
@@ -24,6 +24,21 @@ class Application extends LaravelApplication
$this->useStoragePath($this->basePath . '/storage');
}
/**
* Override this method so we can inject our own LoadConfiguration
* class, which looks for any configurations that have been overridden
* in the root's config.php file
* @param array $bootstrappers
*/
public function bootstrapWith(array $bootstrappers)
{
#$find = '\Illuminate\Foundation\Bootstrap\LoadConfiguration';
$replace = LoadConfiguration::class;
$bootstrappers[1] = $replace;
parent::bootstrapWith($bootstrappers); // TODO: Change the autogenerated stub
}
/**
*
*/