Tag: wordpress
-
An alternative for a DI-container in WordPress plugin development
Briefly, the dependency injection helps us to work with dependencies: makes them observable and enables to substitute them whenever we need it. My choice of preference is to inject dependencies through a constructor. Here, we have both the observability and the replaceability. As a bonus, the object is completely instantiated and ready for future work. […]