Closed hakuno closed 3 years ago
What is it you're actually trying to retrieve here? If you're passing an object it is always reference anyway, if you're passing it to multiple places, the reference object should be added to the container with share
so doesn't build a new one each time.
Will close as this is more of s discussion, feel free to continue the discussion.
Hey! How are you?
I can't pass any parameter by reference in my constructors through container. I got something like:
So I looked at
league/container/src/Definition/Definition.php
on line 252 and see around... I've no clue though.Are the arguments cloned or "proxied"? How can I overcome this?
Any option such as
???