-
composer require vaimo/composer-patches
-
composer clear-cache
-
Download the appropriate composer patch files
-
mkdir -p patches/magento
and place the files there -
update composer.json file (adapt according to your version):
"extra": {
"magento-force": "override",
"patches": {
"*": {
"Apply MDVA-43395": {
"source": "patches/magento/MDVA-43395_EE_2.4.3-p1_COMPOSER_v1.patch",
"targets": [
"magento/framework",
"magento/module-email"
]
},
"Apply MDVA-43443": {
"source": "patches/magento/MDVA-43443_EE_2.4.2-p2_COMPOSER_v1.patch",
"targets": [
"magento/framework",
"magento/module-email"
],
"after": "MDVA-43395_EE_2.4.3-p1_COMPOSER_v1.patch"
}
}
}
}
composer install
(to apply the patches)