Bug #45463
Routing includes object arguments even though it should not
100%
Description
Given this route as the only active route:
- name: 'foo' uriPattern: 'foo(/{@action})' defaults: '@package': 'Acme.Demo' '@controller': 'Foo' '@action': 'index'
and a controller with this action:
/** * @param \Acme\Demo\Domain\Model\Foo $foo * @param string $bar */ public function removeBarAction(Foo $foo, $bar) {}
The following all works fine and results in a link being built (foo is an object):
<f:link.action action="removeBar" arguments="{foo: foo}"> <f:link.action action="removeBar" arguments="{xyz: foo}"> <f:link.action action="removeBar" arguments="{foo: foo, bar: foo}">
But this does not work (bar is a string):
<f:link.action action="removeBar" arguments="{foo: foo, bar: bar}">
The following happens inside the router:
So the arguments that are objects are considered internal, because there __
is involved…
Updated by Gerrit Code Review about 8 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18302
Updated by Gerrit Code Review about 8 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18302
Updated by Gerrit Code Review about 8 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18302
Updated by Gerrit Code Review about 8 years ago
Patch set 1 for branch 2.0 has been pushed to the review server.
It is available at https://review.typo3.org/19092
Updated by Bastian Waidelich about 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 890fda2e46eb3c3eb7147c3f985f847a65e03124.