Symfony Tips

Small and incremental changes to improve your Symfony application

Articles in this series

Symfony Tips #01 - One Use Case → One Controller

May 12, 20212 min read 148 views

🖥 Symfony Tips: Quick and practical tricks to develop solid backend systems. This is OK class UserController { #[Route('/users', name: 'users_list', methods: ['GET'])] public function list(): JsonResponse { return new JsonRespons...

Symfony Tips #01 - One Use Case → One Controller
Symfony Tips #02 - Use folders to group your Use Cases
Symfony Tips #03 - Move internal dependencies to the constructor
Symfony Tips #04 - Use Repositories
Symfony Tips #05 - One line per service
Symfony Tips #06 - Decode input in an Event Subscriber