Answer the question
In order to leave comments, you need to log in
What's wrong with symfony?
Started throwing this error (even if it's a newly created project):
An exception has been thrown during the rendering of a template ("[Semantical Error] The annotation "@Route" in method AppBundle\Controller\DefaultController::indexAction() was never imported. Did you maybe forget to add a "use" statement for this annotation? site_symfony/my_project_name/app/config/routing.yml"). Make sure annotations are installed and enabled.").
This is also written, but it still gives an error
use Symfony\Component\Routing\Annotation\Route;
symfony version 3.4
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question