Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Symfony 4 Best Practices

Symfony 4 Best Practices

Marco Petersen

February 28, 2018
Tweet

More Decks by Marco Petersen

Other Decks in Programming

Transcript

  1. Symfony 4
    Best Practices

    View full-size slide

  2. Best practices are...



    View full-size slide

  3. Today we’ll be looking at...









    View full-size slide

  4. 1. Directory Structure


    View full-size slide

  5. 1. Directory Structure


    View full-size slide

  6. 2. Configuration



    View full-size slide

  7. 2. Configuration



    View full-size slide

  8. 2. Configuration



    View full-size slide

  9. 3. Business Logic




    View full-size slide

  10. 3. Business Logic




    View full-size slide

  11. 3. Business Logic




    View full-size slide

  12. 4. Controllers




    View full-size slide

  13. 4. Controllers




    View full-size slide

  14. 4. Controllers




    View full-size slide

  15. 4. Controllers




    View full-size slide

  16. 5. Templates


    View full-size slide

  17. 5. Templates


    View full-size slide

  18. 6. Forms




    View full-size slide

  19. 6. Forms




    View full-size slide

  20. 6. Forms




    View full-size slide

  21. 7. Internationalization


    View full-size slide

  22. 7. Internationalization


    View full-size slide

  23. 8. Security





    View full-size slide

  24. 8. Security





    View full-size slide

  25. 9. Tests (2)


    View full-size slide

  26. 9. Tests (2)


    View full-size slide

  27. $kernel->terminate($request, $response);

    View full-size slide