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
I want to pass additional data along with the dispatcher but I don't want to use global variables. I patched the dispatchter to support variables arguments which are passed to the function:
Dispatcher.php
45: public function dispatch($httpMethod, $uri, ...$params)
58: $vars = array_merge($vars, $params);
If you think this is a good idea it would be great if you could integrate it, if not please tell me which way you would choose.
The text was updated successfully, but these errors were encountered:
I want to pass additional data along with the dispatcher but I don't want to use global variables. I patched the dispatchter to support variables arguments which are passed to the function:
Dispatcher.php
45: public function dispatch($httpMethod, $uri, ...$params)
58: $vars = array_merge($vars, $params);
If you think this is a good idea it would be great if you could integrate it, if not please tell me which way you would choose.
The text was updated successfully, but these errors were encountered: