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

martin
martin CTO @ VIABIRDS Technologies GmbH Spryker Solution Partner Posts: 49 πŸ§‘πŸ»β€πŸš€ - Cadet

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

  • Ievgen Varava
    Ievgen Varava Sprykee Posts: 154 πŸ§‘πŸ»β€πŸš€ - Cadet

    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.

  • martin
    martin CTO @ VIABIRDS Technologies GmbH Spryker Solution Partner Posts: 49 πŸ§‘πŸ»β€πŸš€ - Cadet

    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.

  • Ievgen Varava
    Ievgen Varava Sprykee Posts: 154 πŸ§‘πŸ»β€πŸš€ - Cadet
  • Ievgen Varava
    Ievgen Varava Sprykee Posts: 154 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited May 2021

    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.

  • martin
    martin CTO @ VIABIRDS Technologies GmbH Spryker Solution Partner Posts: 49 πŸ§‘πŸ»β€πŸš€ - Cadet

    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?

  • Ievgen Varava
    Ievgen Varava Sprykee Posts: 154 πŸ§‘πŸ»β€πŸš€ - Cadet

    sorry, possibly I'm wrong. Looks like you're still referring to symfony-security-coreΒ 4.4.24

  • Ievgen Varava
    Ievgen Varava Sprykee Posts: 154 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited May 2021
  • martin
    martin CTO @ VIABIRDS Technologies GmbH Spryker Solution Partner Posts: 49 πŸ§‘πŸ»β€πŸš€ - Cadet

    yes, I am also quite confused at the moment. Seems like I was still at 4.4.24 .