Fix session factory
parent
c1c158ccda
commit
cde93c68dc
|
@ -76,15 +76,21 @@ class Session
|
||||||
default:
|
default:
|
||||||
$handler = null;
|
$handler = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$session = new Native($baseURL, $handler);
|
|
||||||
|
|
||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
$logger->notice('Unable to create session', ['mode' => $mode, 'session_handler' => $session_handler, 'exception' => $e]);
|
$logger->notice('Unable to create session', ['mode' => $mode, 'session_handler' => $session_handler, 'exception' => $e]);
|
||||||
$session = new Memory();
|
$session = new Memory();
|
||||||
} finally {
|
|
||||||
$profiler->stopRecording();
|
$profiler->stopRecording();
|
||||||
return $session;
|
return $session;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
$session = new Native($baseURL, $handler);
|
||||||
|
} catch (Throwable $e) {
|
||||||
|
$logger->notice('Unable to create session', ['mode' => $mode, 'session_handler' => $session_handler, 'exception' => $e]);
|
||||||
|
$session = new Memory();
|
||||||
|
}
|
||||||
|
|
||||||
|
$profiler->stopRecording();
|
||||||
|
return $session;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue