Attempting to override a core Spryker protected method within the Pyz namespace

Spryker Solution Partner Posts: 5 🧑🏻‍🚀 - Cadet

I am attempting to override a core Spryker method by modifying a file within the Pyz namespace in Spryker. The specific file is located at:
vendor/spryker/glue-application/src/Spryker/Glue/GlueApplication/Rest/Request/RestRequestValidator.php
My goal is to update the validateRequest() method. I have taken the following steps, but the changes are not taking effect:

  1. Created a class with the same name in the Pyz namespace as a child class of the Spryker namespace.
  2. Defined a private method with the name validateRequest();
    If you have further details about the issue or additional steps you've taken, providing that information could help in offering more specific assistance.

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.