Replies: 2 comments 9 replies
-
Ah, found it in early discussions. However, note that this is the path that might not meet serious resistance from Symfony. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your participation. 🙂 As you've discovered, we discussed this idea already - it is a cool idea, and I have some experimental code in a repository playing around with some ideas in this area myself. I would certainly welcome experiments in this area - a service provider builder implementing patterns like these, I'm sure, would be a very cool proof of concept, and a very nice thing to have (and show) if this PSR comes to fruition! 👍 |
Beta Was this translation helpful? Give feedback.
-
Hello. It's nice to see the designing of PSR in a rational way.
Have you discussed marking factories with attributes, instead of declaring interfaces that return closures? In this case, even Symfony with their compiled container could squeeze the maximum out of it.
Attributes can also be extensible. This way different implementations can add their own settings, but it will still be compatible with PSR. I haven't thought about how correct this is yet. I would most likely use a second attribute with some specific settings alongside.
Beta Was this translation helpful? Give feedback.
All reactions