You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: