- Minor fixes

This commit is contained in:
Dave Mc Nicoll 2023-02-08 16:36:16 +00:00
parent 93ec2a7e76
commit 977aef1b26
2 changed files with 4 additions and 2 deletions

View File

@ -31,6 +31,8 @@ return [
'app.errorhandler.html' => function($c, Picea $picea) { 'app.errorhandler.html' => function($c, Picea $picea) {
return function(\Throwable $exception) use ($picea) { return function(\Throwable $exception) use ($picea) {
error_log($exception->getMessage());
return new HtmlResponse($picea->renderHtml('lean/error/500', [ return new HtmlResponse($picea->renderHtml('lean/error/500', [
'title' => "Une erreur s'est produite lors de l'exécution du script.", 'title' => "Une erreur s'est produite lors de l'exécution du script.",
'subtitle' => "Êtes-vous connecté avec le bon compte ?", 'subtitle' => "Êtes-vous connecté avec le bon compte ?",

View File

@ -85,11 +85,11 @@ class Routing {
# $container->set($class, autowire($class)->method($method, $request)); # $container->set($class, autowire($class)->method($method, $request));
if ( null !== ( $languageAnnotation = $this->language->verify($class) ) ) { /*if ( null !== ( $languageAnnotation = $this->language->verify($class) ) ) {
if ( $languageAnnotation->key ) { if ( $languageAnnotation->key ) {
# TODO !!! $language # TODO !!! $language
} }
} }*/
$object = $container->get($class); $object = $container->get($class);