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
Compatibility bug with Symfony 6.1 & ApiPlatform 3.0 #342
Comments
I got the same problem here too. With bundle enabled
With bundle disabled:
I use the same configuration that @ppoz21 is given in the example above. EDIT: The console debug:api-resource I can debug the API resource with no problem. |
Hi! I use google translation. I have the same problem also. First of all the bundle disrupted the functioning of the maker-bundle. Take a look at this issue. Then after configuration all my routes that are generated with the I think the bundle is not ready for symfony 6 yet |
I think the problem is that entity is using the old style annotation of doctrine instead of the PHP 8 attributes. |
The doc examples and the file added by the Flex recipe use annotations, but if your application is using attributes, you can update the code in your application to use those. Annotations use is still valid on PHP 8, but the ecosystem is moving away from it (if everything only documented/configured attributes by default, then folks running on PHP 7 would have broken apps; it's one of those "you can't win them all" situations). |
Hi everyone, is there any workaround? As described by others, API platform API resources are debug-able but they don't appear in routing therefore the routes are not callable and they don't appear in swagger. It feels like it's preventing API platform from registering routes which makes no sense to me if it's not decorated with the #[ApiResource] I have changed my RefreshToken entity to
security.yml
routes/token.yml
|
Don't know what made a difference, maybe installing symfony then adding api-platform, but flex + api-platform actually works. |
Hi everyone,
I have problem with Symfony 6.1.0 and ApiPlatform 3.0.0
After installing bundle via composer all my API routes disappeared (only LexikJWT route added by OpenAPI decorator left)
When I remove bundle from bundles.php all endpoints return
Here is my code:
RefreshToken.php
security.yaml
Anyone have any solution?
The text was updated successfully, but these errors were encountered: