Added call method to the container. #116
Ok as promised here's the second pull request for the container class. 100% backwards compatible and tested.
The new call method allows you to execute a callable and inject its dependencies using the container.
I have a third pull request that I'm working on but its a bit bigger so I'll probably wait until tomorrow since its getting pretty late here. I have a working prototype but I want to go through the code and write some more tests for it.
What I'm working on is making the route dispatcher execute the action using the
It would also be nice to do the same for task actions and possibly migrations as well.
Nice addition to the container :)
Executing route actions through the container sounds like a useful feature. It'll make it possible to inject common dependencies through the constructor while specific dependencies are injected into the method/closure that actually need them.