Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing addittional data to functions #66

Open
peterpostmann opened this issue Aug 23, 2017 · 0 comments
Open

Passing addittional data to functions #66

peterpostmann opened this issue Aug 23, 2017 · 0 comments

Comments

@peterpostmann
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant