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, I had to override one of customer facade methods, but it seems that when I call this method in

U01G4K5E0J2
U01G4K5E0J2 Posts: 194 πŸ§‘πŸ»β€πŸš€ - Cadet

hi,
I had to override one of customer facade methods, but it seems that when I call this method in one of my modules, the original method is called,
in my module Im uding factory getContainer()->getLocator()->customer()->facade() to access customer facade, am I doing something wrong? what do I have to do to use my custom facade?

Comments

  • U01LKKBK97T
    U01LKKBK97T Posts: 287 πŸ§‘πŸ»β€πŸš€ - Cadet

    You need to run docker/sdk build codebase. After that, the locator should be able to resolve your project-level facade.

  • U01G4K5E0J2
    U01G4K5E0J2 Posts: 194 πŸ§‘πŸ»β€πŸš€ - Cadet

    and if I am not using docker/sdk?

  • U01LKKBK97T
    U01LKKBK97T Posts: 287 πŸ§‘πŸ»β€πŸš€ - Cadet

    Then you need to use the vagrant equivalent, of course. Don't know the exact command, please check the docs.

  • U01G4K5E0J2
    U01G4K5E0J2 Posts: 194 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited March 2021

    I am not using vagrant either but thanks

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

    docker/sdk build runs these command in the section build https://github.com/spryker-shop/suite/blob/master/config/install/docker.yml#L5

  • Sylvain Gaffie
    Sylvain Gaffie Cloud Engineer @Spryker. Sprykee Posts: 18 πŸ§‘πŸ»β€πŸš€ - Cadet

    vendor/bin/console cache:class-resolver:build is the one you need, in that list.