-
Notifications
You must be signed in to change notification settings - Fork 703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ParamFetcher parameter conflicts with a path parameter 'page' for route 'route_name' #629
Comments
Ok, got it. Have to define the |
Unfortunately, that issue still persists for me, but now with a non-path parameter My route: /**
* @ApiDoc(
* description="Returns a single object item"
* )
*
* @Rest\QueryParam(name="fields", requirements=".+", description="Fields to select")
* @Rest\QueryParam(name="withAcl", requirements=".+", default=false, description="With ACL information")
*
* @Rest\View()
* @Rest\Get("/{pk}", requirements={"pk" = ".+"})
*
* @param string $pk
* @param string $fields
* @param boolean $withAcl
*
* @return array
*/
public function getItemAction($pk, $fields = null, $withAcl = false)
{ Same Exception as abov:
Anyone a idea how to fix that? |
Temporarily fixed with
But shouldn't it be possible to set default values, or should those php default values are replaced with those in |
yeah .. i guess it would be good to make this work. i guess if the defaults match there is no reason to complain about the conflict |
I get that exception
vendor/friendsofsymfony/rest-bundle/FOS/RestBundle/EventListener/ParamFetcherListener.php at line 67
with my route:
I've
Does this not work for a route pattern with a placeholder
{page}
?The text was updated successfully, but these errors were encountered: