Find/replace the LoadConfiguration class #163

This commit is contained in:
Nabeel Shahzad
2018-03-14 09:46:02 -05:00
parent 6975167a77
commit 7148f27d33
+10 -3
View File
@@ -32,11 +32,18 @@ class Application extends Illuminate\Foundation\Application
*/ */
public function bootstrapWith(array $bootstrappers) public function bootstrapWith(array $bootstrappers)
{ {
#$find = '\Illuminate\Foundation\Bootstrap\LoadConfiguration'; $find = \Illuminate\Foundation\Bootstrap\LoadConfiguration::class;
$replace = LoadConfiguration::class; $replace = LoadConfiguration::class;
$bootstrappers[1] = $replace;
parent::bootstrapWith($bootstrappers); // TODO: Change the autogenerated stub $bootstrappers = array_replace(
$bootstrappers,
array_fill_keys(
array_keys($bootstrappers, $find),
$replace
)
);
parent::bootstrapWith($bootstrappers);
} }
/** /**