Replies: 2 comments 10 replies
-
Hey @pionl So I agree with all of those ideas!! The phpfox/container was something I created specifically for this package! But I understand your points. I think a Container interface would work better here? I'd happily accept a PR or example on how you think some of this could work if you are interested? |
Beta Was this translation helpful? Give feedback.
10 replies
-
I've found that that container interface does not allow |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @JustSteveKing ,
This is what I was looking for, but have few questions about the possibility to make it more "framework" agnostic and more type strict.
I see you are using
phpfox/container
- would it be possible to remove the depedency and use symfony interface? This way we could pass Laravel / Symfony container.Also I see that you are binding $resource to container, it would be better to use
make
and provide the SDK as a paremeter to the "resolver". This would allow me to use my own services in constructor.Instead of dynamic calls enfore more strict way how to add resources. -> I must implement method that would return the "resource" -> this would allow IDE to tell the user -> hey I've got these resources you can use (+ PHP Stan checks, etc)
What do you think?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions