-
Notifications
You must be signed in to change notification settings - Fork 289
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
Function Variables #258
Comments
Yea, this is something I have planned for a later version. Unfortunately, it would break backwards compatibility pretty heavily, as all route callbacks would have to have their signatures changed, so its going to have to wait until the next major version. |
I was just wandering if a simple if/else could be used.
It's not pretty, but it works. If you do want do this, let me know and I'll create a pull request. |
I'd rather not introduce more configurable branching for now. Klein already has a lot of branching based on configurations and injectables. I might introduce an interesting way to do this in a refactor that I'm current working on. We'll see. |
@Rican7 Fair enough. |
Just for helping coding style, can the function variables be returned in and single object. Eg.
is really long, if i only just want to get $app. So can this be made better by perhaps having them all in one object parameter e.g.
or
or which ever way is better.
The text was updated successfully, but these errors were encountered: