Service Container - Intro into professional PHP development

Опубликовано: 15 Август 2024
на канале: Frank Prins
522
23

This is part 5 of a series introducing professional PHP development in 2024, where we set up a container to resolve services, explore autowiring and set up service providers!

00:00 Intro
00:24 Scaffolding application
04:49 Injecting dependencies
05:34 Current routing setup
05:53 Adding a container to the router
06:14 Choosing a container package
06:34 Requiring a container package
06:50 Service Providers
07:16 Autowiring
07:40 Our first ServiceProvider
08:50 Registering the ServiceProvider
09:00 Passing the container to the router
09:13 Testing the configuration
10:17 Cleaning up Container initialization
12:46 Conclusion