Add config.php at root; include configuration overhaul and then fixes to the installer #156
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user