Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merged branch Seldaek/router_def (PR #3437)
Commits ------- 09b1bd5 [HttpKernel] Remove the _controller since it is not a route parameter part of the url Discussion ---------- [HttpKernel] Remove the _controller since it is not a route parameter part of the URL There is no reason for the _controller to be there, the whole idea behind this _route_params thing was to help re-generating the current page's URL, you can easily grab the _route + _route_params and reconstruct it without having lots of garbage as query parameters like `?_controller=Foo::..` --------------------------------------------------------------------------- by fabpot at 2012-02-24T10:29:01Z I agree but isn't it a BC break? I mean, someone may rely on `_controller` in his code. --------------------------------------------------------------------------- by Seldaek at 2012-02-24T11:45:46Z This is a new 2.1 feature AFAIK so no it's not breaking anything. If _controller is deemed necessary then we should add it on the attributes, but not in the _route_params IMO. --------------------------------------------------------------------------- by stof at 2012-02-24T13:32:41Z indeed, ``_route_params`` is new in 2.1
- Loading branch information
b3da94d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no tests for checking default request attributes?
b3da94d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess not, if you'd like to submit some it would be great.