package updates
This commit is contained in:
@@ -29,7 +29,7 @@ class Application extends Container implements ApplicationContract, HttpKernelIn
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const VERSION = '5.7.8';
|
||||
const VERSION = '5.7.19';
|
||||
|
||||
/**
|
||||
* The base path for the Laravel installation.
|
||||
@@ -184,9 +184,7 @@ class Application extends Container implements ApplicationContract, HttpKernelIn
|
||||
protected function registerBaseServiceProviders()
|
||||
{
|
||||
$this->register(new EventServiceProvider($this));
|
||||
|
||||
$this->register(new LogServiceProvider($this));
|
||||
|
||||
$this->register(new RoutingServiceProvider($this));
|
||||
}
|
||||
|
||||
@@ -201,11 +199,11 @@ class Application extends Container implements ApplicationContract, HttpKernelIn
|
||||
$this->hasBeenBootstrapped = true;
|
||||
|
||||
foreach ($bootstrappers as $bootstrapper) {
|
||||
$this['events']->fire('bootstrapping: '.$bootstrapper, [$this]);
|
||||
$this['events']->dispatch('bootstrapping: '.$bootstrapper, [$this]);
|
||||
|
||||
$this->make($bootstrapper)->bootstrap($this);
|
||||
|
||||
$this['events']->fire('bootstrapped: '.$bootstrapper, [$this]);
|
||||
$this['events']->dispatch('bootstrapped: '.$bootstrapper, [$this]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -494,7 +492,7 @@ class Application extends Container implements ApplicationContract, HttpKernelIn
|
||||
*/
|
||||
public function isLocal()
|
||||
{
|
||||
return $this['env'] == 'local';
|
||||
return $this['env'] === 'local';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -517,6 +515,10 @@ class Application extends Container implements ApplicationContract, HttpKernelIn
|
||||
*/
|
||||
public function runningInConsole()
|
||||
{
|
||||
if (isset($_ENV['APP_RUNNING_IN_CONSOLE'])) {
|
||||
return $_ENV['APP_RUNNING_IN_CONSOLE'] === 'true';
|
||||
}
|
||||
|
||||
return php_sapi_name() === 'cli' || php_sapi_name() === 'phpdbg';
|
||||
}
|
||||
|
||||
@@ -889,7 +891,7 @@ class Application extends Container implements ApplicationContract, HttpKernelIn
|
||||
*/
|
||||
public function getCachedConfigPath()
|
||||
{
|
||||
return $this->bootstrapPath().'/cache/config.php';
|
||||
return $_ENV['APP_CONFIG_CACHE'] ?? $this->bootstrapPath().'/cache/config.php';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user