Merge pull request #302 from creative-commoners/pulls/2.0/fix-db-not-ready-delegation

FIX Ensure delegated requests are continued when DB builds fail in middleware
This commit is contained in:
Franco Springveldt 2017-09-07 15:58:53 +12:00 committed by GitHub
commit a7fee1729e

View File

@ -43,7 +43,8 @@ class InitStateMiddleware implements HTTPMiddleware
return $delegate($request);
} catch (DatabaseException $ex) {
// No-op, database is not ready
// Database is not ready
return $delegate($request);
} finally {
// Persist to the session if using the CMS
if ($state->getUseSessions()) {