Explanation to Twig Controller Autocomplete
In the article https://www.jetbrains.com/help/phpstorm/symfony-twig.html there is an example to add an @controller annotation to get autocompletion for all the variables passed to the template. However, there is no further explanation as to how this works. Can any class/method be a controller? Does it depend on Symfony?
Please sign in to leave a comment.