We sacrifice by not doing any other technology, so that you get the best of Magento.

We sacrifice by not doing any other technology, so that you get the best of Magento.

    This article will help you to create a custom patch & apply on the specific module.
    Let’s suppose you want to modify some code in this file

    vendor/ezimuel/ringphp/src/Client/CurlMultiHandler.php

    Create a copy of that file with your changes on it:

    vendor/ezimuel/ringphp/src/Client/CurlMultiHandler_cust.php

    Then you need to run below command on the Magento root directory:
    diff -u vendor/ezimuel/ringphp/src/Client/CurlMultiHandler.php vendor/ezimuel/ringphp/src/Client/CurlMultiHandler_cust.php > custom_change.patch
    
    And you will get the below output :
    --- vendor/ezimuel/ringphp/src/Client/CurlMultiHandler.php	2022-07-19 18:49:00.044970470 +0530
    +++ vendor/ezimuel/ringphp/src/Client/CurlMultiHandler_cust.php	2022-07-29 10:24:11.615376096 +0530
    @@ -130,6 +130,9 @@
                 }
     
                 do {
    +                // add your changes here
                     $mrc = curl_multi_exec($this->_mh, $this->active);
                 } while ($mrc === CURLM_CALL_MULTI_PERFORM);
    Then you can change it as per the Magento patch format as shown below
    diff --git a/vendor/ezimuel/ringphp/src/Client/CurlMultiHandler.php b/vendor/ezimuel/ringphp/src/Client/CurlMultiHandler.php
    index fe83dc3e5adb..2e230c870eef 100644
    --- a/vendor/ezimuel/ringphp/src/Client/CurlMultiHandler.php
    +++ b/vendor/ezimuel/ringphp/src/Client/CurlMultiHandler.php
    @@ -130,6 +130,9 @@
                 }
     
                 do {
    +                // add your changes here
                     $mrc = curl_multi_exec($this->_mh, $this->active);
                 } while ($mrc === CURLM_CALL_MULTI_PERFORM);
    If you are using git please run the below command from the Magento root directory.
    git apply custom_change.patch

     

    Fill the below form if you need any Magento relate help/advise/consulting.

    With Only Agency that provides a 24/7 emergency support.

      Get a Free Quote