diff --git a/meta/config.php b/meta/config.php index 7e5ad72..b993871 100644 --- a/meta/config.php +++ b/meta/config.php @@ -1,14 +1,3 @@ [ - 'connections' => [ - 'lean' => [ - 'adapter' => 'SQLite', - 'path' => getenv('PROJECT_PATH') . DIRECTORY_SEPARATOR . "var/lean.sqlite3", - 'pragma_begin' => "journal_mode=WAL", - 'pragma_close' => "analysis_limit=500,optimize", - ], - ], - ], -]; \ No newline at end of file +return []; \ No newline at end of file diff --git a/meta/definitions/event.php b/meta/definitions/event.php index 84c081f..e052a74 100644 --- a/meta/definitions/event.php +++ b/meta/definitions/event.php @@ -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;