- fixed a missed bug while migrating code from Routing event
This commit is contained in:
parent
6c58586823
commit
30d0e8a14d
@ -1,14 +1,3 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'ulmus' => [
|
||||
'connections' => [
|
||||
'lean' => [
|
||||
'adapter' => 'SQLite',
|
||||
'path' => getenv('PROJECT_PATH') . DIRECTORY_SEPARATOR . "var/lean.sqlite3",
|
||||
'pragma_begin' => "journal_mode=WAL",
|
||||
'pragma_close' => "analysis_limit=500,optimize",
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
return [];
|
@ -54,7 +54,10 @@ return [
|
||||
|
||||
if ( $redirect = $securityHandler->verify($class, $method) ) {
|
||||
if ( empty($object->user) || ! $object->user->logged ) {
|
||||
$routing->session->set('redirectedFrom', (string) $request->getUri());
|
||||
if ($container->has(Session::class)) {
|
||||
$container->get(Session::class)->set('redirectedFrom', (string)$request->getUri());
|
||||
}
|
||||
|
||||
$routing->response = $redirect;
|
||||
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user