Alberto Beiz.

Symfony Tips #02 - Organiza tus Casos de Uso en carpetas

🖥 Symfony Tips: Quick and practical tricks to develop solid backend systems.

This is OK

Captura de pantalla 2021-05-12 a las 14.19.23.png

This is better

Captura de pantalla 2021-05-12 a las 14.53.20.png


As your codebase grows it will became unmanageable. To solve it, divide your controller in folders and create isolated modules than can evolve independently.

Symfony tip completed 👍! Check the final code and leave a ⭐️!

Next Tip -> Symfony Tips #03 - Move internal dependencies to the constructor

Previous Tip -> Symfony Tips #01 - One Use Case → One Controller

HEY! Follow me at @albertobeiz if you found this tip useful or have any question.