Albertobeiz

Albertobeiz

Symfony Tips #02 - Use folders to group your Use Cases

Symfony Tips #02 - Use folders to group your Use Cases

Subscribe to my newsletter and never miss my upcoming articles

🖥 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

Why?

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.

 
Share this