Created
January 11, 2023 17:29
-
-
Save Knase/dd0e03aa1ff50379fb4f09cff6683664 to your computer and use it in GitHub Desktop.
Patch a Package in Vendor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
composer require cweagans/composer-patches symplify/vendor-patches --dev | |
cp vendor/nette/di/src/DI/Extensions/InjectExtension.php vendor/nette/di/src/DI/Extensions/InjectExtension.php.old | |
#add changes in main file | |
vendor/bin/vendor-patches generate | |
#check file /patches/nette-di-di-extensions-injectextension.php.patch | |
#check composer.json | |
composer install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment