Replies: 1 comment 3 replies
-
How would you pick up the new arguments on I haven't benchmarked this, but I’m cautious that picking up Do you have an example of how you would use this feature? I can’t see how it would be better than just passing these arguments to the initialiser. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using Phlex with a new Hanami 2 app. Hanami has a quite great DI system. This system gives me an instance of my dependencies when I load them into my classes.
Since I'm getting an already instantiated object I can't pass args to the object without doing something weird.
I'm rendering my partials with the help of the
render
method. To pass the arguments down to my object I created a monkey patch that uses the already existingkwargs
parameter of the render method and passes this to the componentscall
method.Is there a interest to merge this into Phlex? If not, could you please provide another way of passing arguments to my objects beside instantiation.
Beta Was this translation helpful? Give feedback.
All reactions