Skip to content

Instantly share code, notes, and snippets.

@seyuf
Last active March 2, 2022 19:51
Show Gist options
  • Save seyuf/0cd908a897f9b544d20de97dd2dcc25a to your computer and use it in GitHub Desktop.
Save seyuf/0cd908a897f9b544d20de97dd2dcc25a to your computer and use it in GitHub Desktop.
  1. composer require vaimo/composer-patches

  2. composer clear-cache

  3. Download the appropriate composer patch files

  4. mkdir -p patches/magento and place the files there

  5. 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"
        }
      }
    }
}

  1. composer install (to apply the patches)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment