CONFIGURATION. IT AUTOMATICALLY RESOLVES THE SERVICE DEPENDENCIES BASED ON THE CONSTRUCTOR'S TYPEHINT WHICH IS USEFUL IN THE FIELD OF RAPID APPLICATION DEVELOPMENT, WHEN DESIGNING PROTOTYPES IN EARLY STAGES OF LARGE PROJECTS. IT MAKES IT EASY TO REGISTER A SERVICE GRAPH AND EASES REFACTORING. The Symfony Book AUTOWIRED SERVICES
event listeners…) of Symfony ▸ Controllers and commands automatically registered as services ▸ Autowiring enabled: their dependencies are explicitly injected - you don’t need to configure your services anymore!! ▸ Only 209 lines of code (+ some patches to Symfony) ▸ 150+ stars on GitHub
register your own types of classes ▸ Can automatically add tags to registered classes ▸ 100% compatible with existing libraries and bundles (including SensioFrameworkExtraBundle) ▸ Will be included in API Platform v2
Domain and Responder. Uses the request input to interact with the Domain, and passes the Domain output to the Responder. ▸ Domain: logic to manipulate the domain, session, application, and environment data, modifying state and persistence as needed. ▸ Responder: logic to build an HTTP response or response description. It deals with body content, templates and views, headers and cookies, status codes, and so on. Source: https://github.com/pmjones/adr
Don’t depend of FrameworkBundle features ▸ Use PSR-7 instead of HttpFoundation: https:// dunglas.fr/2015/07/slides-using-psr-7-with- symfony/ ▸ Don’t use annotations (prefer XML or YAML for routing)