You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Considering the new Container::call functionality, I feel there should be a way to pass concrete runtime arguments to the callable separately to the dependencies that are defined.
It doesn't necessarily need to be >5.6 only, the callable would simply need to define the correct amount of arguments.
The main motivation behind this is to be able to use Container::call within a strategy for League\Route, allowing for dependencies to be defined per controller action but still pass in values from wildcard segments of the URI.
The text was updated successfully, but these errors were encountered:
This currently works when reflecting on callable arguments, however is inconsistent when not using reflection, provide a more consistent solution that will work across the board.
Considering the new
Container::call
functionality, I feel there should be a way to pass concrete runtime arguments to thecallable
separately to the dependencies that are defined.It doesn't necessarily need to be
>5.6
only, thecallable
would simply need to define the correct amount of arguments.< PHP 5.6
>= PHP 5.6
The main motivation behind this is to be able to use
Container::call
within a strategy for League\Route, allowing for dependencies to be defined per controller action but still pass in values from wildcard segments of the URI.The text was updated successfully, but these errors were encountered: