Question from the Symfony 6 test

Easy

Extending the class Symfony\Bundle\FrameworkBundle\Controller\AbstractController; allows my controller to be declared as a service

Author: smaine milianniStatus: PublishedQuestion passed 860 times
Edit
2
Community Evaluations
developer avatar
Marwa
03/03/2024
To aid development, Symfony comes with an optional base controller class called AbstractController. It can be extended to gain access to helper methods. That's it! You now have access to methods like $this->render() and many others that you'll learn about next.