Find/replace the LoadConfiguration class #163
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user