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

mitkumar.dudani.nagar
mitkumar.dudani.nagar Spryker Solution Partner Posts: 3 πŸ§‘πŸ»β€πŸš€ - 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.

Answers