* Refactor and add importer to Installer module #443 * Refactor for finances to use in import * Import groups into roles * Formatting * Formatting * Add interface in installer for import * Notes about importing * Check for installer folder * Formatting * Fix pirep->user mapping * Unused import * Formatting
This commit is contained in:
@@ -2,13 +2,15 @@
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use App\Contracts\Middleware;
|
||||
use App\Services\Installer\InstallerService;
|
||||
use Closure;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
/**
|
||||
* Determine if an update is pending by checking in with the Installer service
|
||||
*/
|
||||
class UpdatePending
|
||||
class UpdatePending implements Middleware
|
||||
{
|
||||
private $installerSvc;
|
||||
|
||||
@@ -17,13 +19,7 @@ class UpdatePending
|
||||
$this->installerSvc = $installerSvc;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \Closure $next
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle($request, Closure $next)
|
||||
public function handle(Request $request, Closure $next)
|
||||
{
|
||||
if ($this->installerSvc->isUpgradePending()) {
|
||||
return redirect('/update/step1');
|
||||
|
||||
Reference in New Issue
Block a user