Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

DI #44

Open
cawa87 opened this issue Nov 7, 2014 · 8 comments
Open

DI #44

cawa87 opened this issue Nov 7, 2014 · 8 comments
Assignees
Milestone

Comments

@cawa87
Copy link

cawa87 commented Nov 7, 2014

Hey, nice router.
But it would be nice if it'll have and mechanism to inject some dependencies in controller\action.

@malukenho
Copy link

@CawaKharkov It's a great ideia!
have you thinking in anything?

@cawa87
Copy link
Author

cawa87 commented Nov 12, 2014

@malukenho I've modified router to inject service container.

@cawa87
Copy link
Author

cawa87 commented Nov 12, 2014

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.

@malukenho
Copy link

@CawaKharkov can you open a PR please? :D

@malukenho malukenho self-assigned this Nov 12, 2014
@malukenho malukenho added this to the 2.0.0 milestone Nov 12, 2014
@cawa87
Copy link
Author

cawa87 commented Nov 12, 2014

@malukenho #45 PR

@mbunge
Copy link

mbunge commented Oct 15, 2015

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.

@mo-ba
Copy link

mo-ba commented May 30, 2016

i think routing and DI are different concerns and should not be mixed...

@malukenho
Copy link

@mo-ba It's not about mix, It's about support.

malukenho pushed a commit that referenced this issue Dec 19, 2016
malukenho pushed a commit that referenced this issue Dec 19, 2016
malukenho pushed a commit that referenced this issue Apr 25, 2017
malukenho pushed a commit that referenced this issue Apr 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants