Ready to unlock your true Symfony 6 potential... to be able to take on any task, because you understand how things work under the hood??? This is the tutorial for you. We attack what's at the core of Symfony: services, config, environments & environment variables. These are the tools you'll need to take on any challenge with Symfony:
Hello bundles! Bundles give you services
Installing new bundles
Finding and using services (including debug:container)
Configuring bundles (i.e. configuring services)
Creating your own services
Autowiring & binding custom arguments
Symfony Environments
The magical configuration loading mechanism
Service parameters
Environment Variables and .env
Secrets vault management
Autoconfiguration
Bonus: MakerBundle!
By the end, it's true! You'll understand the fundamentals behind how any part of Symfony works. Need to use a new feature? You'll be ready!
Overview
Syllabus
- 01. Bundles!
- 02. New Bundle, New Service: KnpTimeBundle
- 03. Finding & Using the Services from a Bundle
- 04. The HTTP Client Service
- 05. The Cache Service
- 06. Bundle Config (to Control Bundle Services)
- 07. Configuring the Cache Service
- 08. debug:container & How Autowiring Works
- 09. Environments
- 10. The "prod" Environment
- 11. Creating a Service
- 12. Dependency Injection
- 13. Parameters
- 14. Manual Service Config in services.yaml
- 15. All About services.yaml
- 16. Bind Arguments Globally
- 17. Named Autowiring & Scoped HTTP Clients
- 18. Non-Autowireable Services
- 19. Controllers are Services Too!
- 20. Environment Variables
- 21. The Secrets Vault
- 22. Reading Secrets vs Env Vars
- 23. MakerBundle & Autoconfiguration
- 24. Customizing a Command
- 25. Command: Autowiring & Interactive Questions
Taught by
Ryan Weaver