What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hi there! I am facing an issue after updating some modules related to the merchant portal, but most
Hi there!
I am facing an issue after updating some modules related to the merchant portal, but most notably the package zed-ui:0.4.1
.
However, this - somehow - implicitly updated symfony-security-core
from 4.4.24
to 5.2.6
as well.
This leads now to the following error on Zed: ErrorException - FATAL ERROR - Declaration of Spryker\Zed\SecurityOauthUser\Communication\Plugin\Security\Provider\OauthUserProvider::loadUserByUsername(string $username) must be compatible with Symfony\Component\Security\Core\User\UserProviderInterface::loadUserByUsername($username)
which is really strange, because PhpStorm indicates me that those two classes still have the same signature and the relationship is recognized.
Has anybody an idea what went wrong here?
Comments
-
There were other known issues related to symfony 5 update. Some of them are covered in documentation: https://documentation.spryker.com/docs/symfony-5-integration In your case it seems that you're forced to update spryker/security-oauth-user module at least. No idea how far this leads you though.
0 -
Thanks for the hint. There are two Symfony interfaces that lack some parameter types.
I could remove them by hand to make it run but this does not look like a feasible solution.
0 -
here is where the typehints were introduced in symfony https://github.com/symfony/security-core/commit/38f92636925745488e561fe31e6560b274e18274
0 -
looks like version restrictions should be stricter in spryker/symfony, or spryker/security-oauth-user needs additional restriction. The minimum compatible version of symfony/security-core is 5.3.0 for this module.
0 -
Okay, thank you. This all makes sense to me.
Does this mean that I should add
symfony/security-core: "^5.3.0"
to my composer file?0 -
sorry, possibly I'm wrong. Looks like you're still referring to
symfony-security-core
Β4.4.24
0 -
interface is changed since v5.0.0 https://github.com/symfony/security-core/compare/4.4...5.0#diff-844d1703b160bd883369bdda48bd97670dae484ba2898a7e0b72ae8ac3650674
0 -
yes, I am also quite confused at the moment. Seems like I was still at
4.4.24
.0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random