Loopback for the changes Zend directory #4057
-
I have an old store that has mandatory changes in the files located here /lib/Zend/Locale/Data/{en.xml, ...}, mainly for currency positions with different languages. Meanwhile we removed Magento Zend from /app/.code/core and /lib, and OpenMage now requests using Composer to install ZF1-Future. If I change the files in this directory /vendor/shardj/zf1-future/library/Zend/Locale/Data they will be replaced with every update. Do we have a loopback for changes related to the Zend folder? I tried to copy the modified files in both directories /app/code/core/Zend and /lib/Zend without any luck. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
composer patches like shown here: https://github.com/fballiano/mcommerce/blob/main/composer.json you can patch anything coming from composer with this method |
Beta Was this translation helpful? Give feedback.
-
actually we have them also in openmage's composer.json |
Beta Was this translation helpful? Give feedback.
-
Thank you. I will document myself to make a patch, I suspected that this is the solution. If Composer updates, will the patch be applied afterwards every time? |
Beta Was this translation helpful? Give feedback.
-
you may have to update the patches but storing a patch makes a porting much easier because you know exactly what lines you're changing, while having a full file makes it more difficult to remember what you tweaked |
Beta Was this translation helpful? Give feedback.
-
Maybe this is also the solution to #3462 - atleast for small code changes. |
Beta Was this translation helpful? Give feedback.
actually we have them also in openmage's composer.json