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 all, I have a question regarding redirecting and access to routes: When we do a redirect we use t

UKMHZV8LX
UKMHZV8LX Posts: 69 🧑🏻‍🚀 - Cadet

Hi all, I have a question regarding redirecting and access to routes:
When we do a redirect we use the controller provider's constants, e.g.

CustomerPageControllerProvider::ROUTE_CUSTOMER_PROFILE

However CustomerPageControllerProvider is deprecated and in its suggested replacement

CustomerPageRouteProviderPlugin

the constants are protected.
So how would we get a route? Spryker core uses the deprecated classes.

Comments

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    @UJY8FHK99 maybe? 🙂

  • Serhii Chepela
    Serhii Chepela Application Architect @ Spryker Sprykee Posts: 49 🧑🏻‍🚀 - Cadet

    Well there is no correct answer I guess. I would recomend copy constants for now and use them im places you need them. We might consider to make them public in the future

  • UKMHZV8LX
    UKMHZV8LX Posts: 69 🧑🏻‍🚀 - Cadet

    Alright, thanks.