Skip to content

Instantly share code, notes, and snippets.

@Knase
Created January 11, 2023 17:29
Show Gist options
  • Save Knase/dd0e03aa1ff50379fb4f09cff6683664 to your computer and use it in GitHub Desktop.
Save Knase/dd0e03aa1ff50379fb4f09cff6683664 to your computer and use it in GitHub Desktop.
Patch a Package in Vendor
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