Closed
Description
There is some inconsistency now. For example I have route
# app/config/routing.yml
hello:
pattern: /hello/{name}
defaults: { _controller: AcmeHelloBundle:Hello:index }
and action
<?php
public function indexAction($name)
{
// ...
}
And after some time we want change route
# app/config/routing.yml
hello:
pattern: /hello/
defaults: { _controller: AcmeHelloBundle:Hello:index }
After this change urls will containe name as get parameter, this part is ok. But controller hasn't more argument $hello
, so after changing in route I should go to each controllers and change also some code.
<?php
$attributes = array_merge($request->query->all(), $request->attributes->all());