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 1010 times
Edit
4
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.