Can you maybe extend your example with a new method, using autowiring (for example pass the request class).
If I extend the DefaultController class with AbstractController, I get a Fatal Error
Uncaught Doctrine\Common\Annotations\AnnotationException: [Semantical Error] The annotation "@required" in method Symfony\Bundle\FrameworkBundle\Controller\AbstractController::setContainer() was never imported
Maybe you have an Idea or an Example for me. Thank you.
Autowire is challenging without a container. Humor. The example shows how to use annotation based routing outside of the Symfony framework. If you want things like autowire then use the actual framework.
Hi,
you example is very well and working fine.
Can you maybe extend your example with a new method, using autowiring (for example pass the request class).
If I extend the DefaultController class with AbstractController, I get a Fatal Error
Uncaught Doctrine\Common\Annotations\AnnotationException: [Semantical Error] The annotation "@required" in method Symfony\Bundle\FrameworkBundle\Controller\AbstractController::setContainer() was never imported
Maybe you have an Idea or an Example for me. Thank you.