From 31015736034c489563774e42a49128154f5a6a99 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Wed, 1 Feb 2023 17:58:02 +0000 Subject: [PATCH] - Removed LanguageAnnotation for now .. might be added later, let's wait for a real use-case... --- src/Routing.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Routing.php b/src/Routing.php index ac759d0..cd76d4f 100644 --- a/src/Routing.php +++ b/src/Routing.php @@ -80,17 +80,11 @@ class Routing { $container, $route, $annotation ) : ResponseInterface { - $class = $annotation->class; + $class = $annotation->class; $method = $annotation->classMethod; # $container->set($class, autowire($class)->method($method, $request)); - if ( null !== ( $languageAnnotation = $this->language->verify($class) ) ) { - if ( $languageAnnotation->key ) { - # TODO !!! $language - } - } - $object = $container->get($class); # Checking if user needs to be logged