Dependency injector
Dependency injection is a technique for managing dependencies between objects in an application. Instead of creating objects directly in your code, you can pass them in as dependencies when you instantiate an object. This makes your code more modular and easier to test, as you can easily swap out dependencies for mock objects or other implementations.
In MaplePHP, you can use the Dependency injector just like create any other container, as long as you dont add arguments or try to access method, if you do that then it will automatically disable Dependency injector. It is design like this becouse it will load in all class reclusive into endlessly.
Last updated