Skip to content
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

fix(symfony): fix debug:api-resource command for class with multiple resources with same uriTemplate #6505

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

c1tru55
Copy link
Contributor

@c1tru55 c1tru55 commented Aug 9, 2024

Q A
Branch? 3.3
Tickets Closes n/a
License MIT
Doc PR n/a

Currently when you run command debug:api-resource for class, which has multiple resources with same uriTemplate (but different routePrefix) - you see:

There are 2 resources declared on the class Book, which one do you want to debug ? 

  [0] /books/{id}{._format}
  [1] /books/{id}{._format}

but result for [0] record is always displayed regardless of your selection, because $answerResource = $helper->ask($input, $output, $questionResource); return choice label, not value.

@soyuka soyuka merged commit 41deeb4 into api-platform:3.3 Aug 9, 2024
75 of 77 checks passed
@c1tru55 c1tru55 deleted the fix-debug-api-resource-command branch August 9, 2024 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants