-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tagging services #7
Comments
FYI: Using currently this code.
|
It would be great to have this built in. But think API would be better like this
If there's no will to include this in the core lib, I would definitely extend it in separate lib... pimple-tags for example, so who needs simple DPI can use just pimple, and those who needs tags also could use that other lib. @Mparaiso what do you say? |
What's the use case of tagging ? I don't really get it. Why do you need the same service with different tags ? |
I know such a feature is not part of pimple by Fabién, but it would be cool feature for dependency injection.
How about beeing abled to "tag" services, so all tagged services could be retrieved?
Example:
The text was updated successfully, but these errors were encountered: