Refactor
This commit is contained in:
parent
11afeea08d
commit
3cf5c646c6
|
|
@ -19,12 +19,17 @@ class BootServiceProvider extends ServiceProvider
|
||||||
// Detect current locale
|
// Detect current locale
|
||||||
$this->app->call('App\Http\Middleware\DetectLanguagePrefer@detect');
|
$this->app->call('App\Http\Middleware\DetectLanguagePrefer@detect');
|
||||||
|
|
||||||
// Skip the installation check when setup or under CLI
|
// Skip the installation check when in setup or under CLI
|
||||||
if (! $request->is('setup*') && PHP_SAPI != "cli") {
|
if ($request->is('setup*') || $this->app->runningInConsole()) {
|
||||||
$this->checkInstallation();
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->checkInstallation(); // @codeCoverageIgnore
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @codeCoverageIgnore
|
||||||
|
*/
|
||||||
protected function checkInstallation()
|
protected function checkInstallation()
|
||||||
{
|
{
|
||||||
// Redirect to setup wizard
|
// Redirect to setup wizard
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user