Overview
Explore advanced techniques for Inversion of Control (IoC) containers in PHP, going beyond constructor injection. Learn to leverage the container's full potential to write loosely coupled code and create applications that are decoupled from the framework. Discover design patterns, implementations, automatic object resolution, and container events. Dive into topics such as contextual binding, soft dependencies, config variables, and service providers. Understand when and how to use arguments, call functions, and work with reflection. Address challenges like circular dependencies and gain insights into tagging for better organization. This 45-minute talk from PHP UK Conference 2018 equips developers with the knowledge to maximize the capabilities of IoC containers for more flexible and maintainable PHP applications.
Syllabus
Introduction
Design Patterns
Implementations
Automatic Object Resolution
Help the Container
Dependencies
Contextual Binding
Container Events
Container Injection
Soft Dependencies
Config Variables
Service Providers
When and How
Using Arguments
Calling Functions
Reflection Functions
Tagging
Circular dependencies
Recap
Taught by
PHP UK Conference