You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UrlGeneratorInterface methods for URL generation have parameters: $arguments and $queryParameters. Currently, arguments used in route path (/route/{id}), and query parameters added to query (?id=7).
This behavior causes difficulties in use. For example, when in route we need to move query parameter to path:
UrlGeneratorInterface
methods for URL generation have parameters:$arguments
and$queryParameters
. Currently, arguments used in route path (/route/{id}
), and query parameters added to query (?id=7
).This behavior causes difficulties in use. For example, when in route we need to move query parameter to path:
In this case changed only route, code for generation should keep as is, but currently we need to change both route and generation code. It's bad.
I suggest to move unused arguments to query parameters, if not setted query parameter with such name:
Not need change generation code. We change only route configuration.
The text was updated successfully, but these errors were encountered: