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

Inject parameters into controller actions #60

Open
CaptainQuirk opened this issue Jun 22, 2020 · 0 comments
Open

Inject parameters into controller actions #60

CaptainQuirk opened this issue Jun 22, 2020 · 0 comments

Comments

@CaptainQuirk
Copy link

Feature Request

Q A
New Feature yes
RFC no
BC Break no

Summary

The summary of the problem I encountered can be found on the Laminas forum.

In short, I would like to be able to inject parameters into controller action functions so that I don't have to fetch/cast them via the Request object, either on top of the action, producing a large clutter of repetitive code lines, neither throughout in the code to avoid the clutter which only makes it more difficult to understand the request the action is supposed to handle.

The mechanism I'm referring too is achieved in the Symfony world with Param Converters or with the @RequestBody annotation in Spring Framework

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

No branches or pull requests

2 participants