Open cawa87 opened 9 years ago
@CawaKharkov It's a great ideia! have you thinking in anything?
@malukenho I've modified router to inject service container.
And I think it would be nice, if user want to inject something to your controller you need to implement some interface InjectableInterface. And when calling dispatch inject container(or some service) to your controller.
@CawaKharkov can you open a PR please? :D
@malukenho #45 PR
It would be cool to use as foundation. https://github.com/container-interop/container-interop
And nobody is forced to use a specific DI-Package.
i think routing and DI are different concerns and should not be mixed...
@mo-ba It's not about mix, It's about support.
Hey, nice router. But it would be nice if it'll have and mechanism to inject some dependencies in controller\action.