{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/10395","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/10395/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/10395/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/10395/events","html_url":"https://github.com/symfony/symfony/issues/10395","id":28867023,"number":10395,"title":"Passing objects to Route generator","user":{"login":"nick4fake","id":1065993,"avatar_url":"https://avatars2.githubusercontent.com/u/1065993?v=4","gravatar_id":"","url":"https://api.github.com/users/nick4fake","html_url":"https://github.com/nick4fake","followers_url":"https://api.github.com/users/nick4fake/followers","following_url":"https://api.github.com/users/nick4fake/following{/other_user}","gists_url":"https://api.github.com/users/nick4fake/gists{/gist_id}","starred_url":"https://api.github.com/users/nick4fake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nick4fake/subscriptions","organizations_url":"https://api.github.com/users/nick4fake/orgs","repos_url":"https://api.github.com/users/nick4fake/repos","events_url":"https://api.github.com/users/nick4fake/events{/privacy}","received_events_url":"https://api.github.com/users/nick4fake/received_events","type":"User","site_admin":false},"labels":[{"id":107512439,"url":"https://api.github.com/repos/symfony/symfony/labels/DX","name":"DX","color":"5319e7","default":false},{"id":111254,"url":"https://api.github.com/repos/symfony/symfony/labels/Routing","name":"Routing","color":"DDDDDD","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2014-03-06T11:25:18Z","updated_at":"2017-08-17T10:51:44Z","closed_at":null,"body":"For Symfony2 Router with the help of standart bundle (sensio extra) we can write ParamConverters to convert request param=>object. Is there any standart way to use reversed convertion?\n\nNow we must do something like this:\npath('DevBlogBundle_post_show',{'post':post.id})\nWhile a better way would be:\npath('DevBlogBundle_post_show',{'post':post})\n\nI've found even example jist:\nhttps://gist.github.com/stevelacey/3226510\n1. Maybe, we should think about adding such functionality to future releases of, for example, sensioFrameworkExtra bundle?\n2. If there is no such functionality, is bundle providing such extension would be needed?\n\nThanks.\n"},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/323035772","html_url":"https://github.com/symfony/symfony/issues/10395#issuecomment-323035772","issue_url":"https://api.github.com/repos/symfony/symfony/issues/10395","id":323035772,"user":{"login":"stof","id":439401,"avatar_url":"https://avatars0.githubusercontent.com/u/439401?v=4","gravatar_id":"","url":"https://api.github.com/users/stof","html_url":"https://github.com/stof","followers_url":"https://api.github.com/users/stof/followers","following_url":"https://api.github.com/users/stof/following{/other_user}","gists_url":"https://api.github.com/users/stof/gists{/gist_id}","starred_url":"https://api.github.com/users/stof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stof/subscriptions","organizations_url":"https://api.github.com/users/stof/orgs","repos_url":"https://api.github.com/users/stof/repos","events_url":"https://api.github.com/users/stof/events{/privacy}","received_events_url":"https://api.github.com/users/stof/received_events","type":"User","site_admin":false},"created_at":"2017-08-17T10:51:44Z","updated_at":"2017-08-17T10:51:44Z","body":"@Zzortell `we do not generate so much routes` is a wrong assumption. I have cases generates thousands URLs in the page (and I know other peoples have such cases too, which is why we have a strong focus on performance for the Routing component, even though most recent improvements were on the matching side)\r\n\r\nAnd @ScreamingDev's proposal in the issue you linked causes issues for matching (what would the request attribute look like after matching when the placeholder uses an object access syntax ?)"}}
{"actor":{"display_login":"stof"}}