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
Cannot install symfony/messenger #1169
Comments
Hi, Unfortunately, it's a known issue. Messenger 4.3 contains some BC breaks that will not be fixed (because this component is still considered experimental). API Platform 2.5 will support Messenger 4.3. In the meantime, you can downgrade to Messenger 4.2, or try this pull request (that isn't ready yet): api-platform/core#2784 |
Hi, thanks for your reply. I have try it, but got the same message:
How to install the version 4.2? |
Change "extra.symfony.require" in composer.json to "^4.2" We made a mistake here: https://github.com/api-platform/api-platform/blob/v2.4.4/api/composer.json#L64 @dunglas This is another reason why we should switch back to semver. |
Hi thanks, but this also not works because it has conflicts with framework-bundle
It's ok, I'd rather not do that and don't want to downgrade so much that nothing works afterwards. I wanted to install msgphp/user-bundle, but it doesn't work and I have to use FOSUserBundle. |
Yes, you need to add
|
@Stefan39 As an aside, you don't need FOSUserBundle (we don't recommend it). You may refer to our docs on JWT authentication. |
@teohhanhui Thanks for your hints... also to add symfony/messenger manually to the composer.json and update symfony/* not works (same error). I use the Lexik JWT authentication bundle, but i need to secure the api with at least an api user. |
We have a complete tutorial on how to do that here: https://api-platform.com/docs/core/jwt/ |
@Stefan39 You're right. I forgot that composer is not very good at downgrading packages when resolving dependencies. So it's a more manual process than that. |
Yes i know.. with this tutorial i have installed lexik :-) My / Our problem is, that the api documentation are visible for everyone. Of couse it could not use without credentials, but see all the methods and so on. Therefore i want to use FOSUserBundle or msgphp/user-bundle to protect this. |
Those bundles will not help you in this case. If you want to restrict access to the docs, you need to add the correct rules in the |
Ah ok.. thanks. Now it protected, but haven't a login form or anything. But this is a new construction side, thanks. |
Hi,
for an user-bundle i need symfony/messenger but I cannot install it
What's wrong here?
Thanks, Stefan
The text was updated successfully, but these errors were encountered: