- Removed LanguageAnnotation for now .. might be added later, let's wait for a real use-case...

This commit is contained in:
Dave M. 2023-02-01 17:58:02 +00:00
parent 93ec2a7e76
commit 3101573603
1 changed files with 1 additions and 7 deletions

View File

@ -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