8000 [Routing] Support passing parameters as objects to Router::generate() · Issue #21435 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Routing] Support passing parameters as objects to Router::generate() #21435

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

Closed
remi-blaise opened this issue Jan 27, 2017 · 3 comments
Closed

Comments

@remi-blaise
Copy link
Contributor
Q A
Bug report? no
Feature request? yes
BC Break report? yes
RFC? no
Symfony version 4.0

Hello,

Following #21409, I think it would be very more user-friendly to enable passing parameters as objects to Router::generate().
Indeed, the user is used to get objects from parameters in the controller using explicit or implicit param converters, so it would be nice to be able to pass these very same objects to generate routes.
It should be possible insofar the task of the Router is exactly managing controller arguments for making routes.

@robfrawley
Copy link
Contributor

Hm... what exactly do you mean by "passing parameters as objects to Router::generate(). Can you provide an example of how you'd expect that to function?

@linaori
Copy link
Contributor
linaori commented Jan 27, 2017

@Zzortell like this? https://github.com/iltar/http-bundle

@javiereguiluz
Copy link
Member

@Zzortell thanks for your proposal.

However, I must close it as duplicated of #10395, #5999, #11177 and #2288.

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

4 participants
0