73 Commits (bd6403a6bef36fdbefdb287dc7e26286d5e06e5e)

Author SHA1 Message Date
Jordi Boggiano bd6403a6be
Fix newly surfaced errors 2 years ago
Jordi Boggiano 6bd75d5738
Update phpstan & baseline (2158, 104) 2 years ago
Jordi Boggiano ca3b874414
Fix issue in remove command when allow-plugins is not present at all, fixes #10629 2 years ago
Christopher Hertel 3a1e07f3cc
Remove allow-plugin config on remove (#10615) 2 years ago
Jordi Boggiano 6a466a120a
Enable strict types on all files 2 years ago
Alexander Schranz 1321bfca36
Add return types to closures (#9) 2 years ago
Jordi Boggiano 86fb8d4412
Fix CS 2 years ago
Jordi Boggiano 5c98a2cf8e
Add phpstan-symfony to get type info about console InputInterface, fix many errors (#10476)
Extract common init/require commands functionality into PackageDiscoveryTrait
Extract some helper methods into BaseCommand for better types
2 years ago
Jordi Boggiano 8f1b3d21db
Add --no-scripts to all commands and disable plugins/scripts when running self-update (#10371)
* Add --no-scripts as global parameter available to all commands, and handle it by default when creating a Composer instance from Command::getComposer

* Disable scripts/plugins for self-update command, fixes #10351
2 years ago
Jordi Boggiano 24ce1eddbd
Add composer/pcre dependency and use it everywhere instead of preg_* 2 years ago
Jordi Boggiano d86049565d
Deactivate plugins before recreating a new composer instance and loading new plugins in require/remove commands, fixes #9962 3 years ago
Martin Herndl 3013674c92
Refactor ignore platform reqs checks (#10079)
Introduces a `PlatformRequirementFilter` with methods that help to decide if a requirement is ignored or not as discussed in #10045 but without changing behaviour.
3 years ago
Samuel Felipe 3ccb54832b
PHPStan level 6 in src/Composer/Command (#10214) 3 years ago
Nicolas Grekas eac069bf36
Fix --no-scripts disabling events for plugins 3 years ago
Jordi Boggiano b7d770659b
CS fixes 4 years ago
Jordi Boggiano 87006774b1
Avoid requiring a lock file to run composer remove, fixes #9439 4 years ago
Jordi Boggiano 9ca7457698
Check whether remove command successfully removed the target packages, fixes #6998 4 years ago
Jordi Boggiano 24abd233ec
Merge branch 'master' into code-improvements 4 years ago
Jordi Boggiano 0775e261c5
Merge remote-tracking branch 'lstrojny/apcu-prefix' 4 years ago
Jordi Boggiano 9c4b00be67
Add -w/-W to docs, refs #9257 4 years ago
Simon Berger 002fd39bc6 Removed passing of parameters with default value 4 years ago
Lars Strojny 696f27ca83
Enable APCu if prefix is set 4 years ago
Lars Strojny 7db8b33a9e
Restore 4 years ago
Lars Strojny 0b6abf3b96
APCu prefix as a separate option 4 years ago
Lars Strojny dafd225a35
Allow to pass a string for apcu-autoloader to set the APCu prefix 4 years ago
Jordi Boggiano 085fe4e7e5
Add --no-progress support and a few more fixes 4 years ago
Jordi Boggiano 29ec10d95c
Fix output formatting 4 years ago
Jordi Boggiano c8efb50d39
Change the single requirement ignore from --ignore-platform-reqs=xx to --ignore-platform-req=xx to avoid BC issues 4 years ago
Jordi Boggiano e85da00dff
Add a way to ignore only some packages in --ignore-platform-reqs, and make the platform check ignore those packages which were ignored as requirements, fixes #8861 4 years ago
Jordi Boggiano 1d2df5ef55
Add output to remove/require command to highlight the fact it is running an update command, refs #8910 4 years ago
PirxDanford 3a7ea25289
Introduce --no-install option for the update, require and remove commands
Closes #8669, fixes #8551

Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
4 years ago
Jordi Boggiano 11765ddfea
Add --unused flag to remove command, fixes #8283 4 years ago
Jordi Boggiano 736af4cb58
Add with-all-dependencies and update-with-all-dependencies args to remove command 4 years ago
Nils Adermann 9fb09049ff Rename and document constants for partial update behavior 4 years ago
Nils Adermann 392d0abd21 Rename test files and standardize on allow list rather than whitelist 4 years ago
Jordi Boggiano d14d411fa4
Add --dry-run to require and remove commands, fixes #7793 4 years ago
Jordi Boggiano 0317199507
Merge branch 'master' into 2.0 5 years ago
Markus Staab c876613d5c Added "Read more at" links to all commands (#8019) 5 years ago
Jordi Boggiano 549ccd8f79 Remote outputProgress concept from downloaders as it does not make sense when things happen in parallel, refs #7901 5 years ago
Jordi Boggiano 66d84f60c6 Fix pattern matching for remove wildcard, refs #7715 6 years ago
David Manners a1ab75a703 composer/composer#7159: make the remove command to a regex lookup on package name
- if you have multiple vendor modules installed you should be able to do composer remove vendor/* to remove all
 - update remove and also remove from alternative type to also do a preg_grep for what the user has inputed
6 years ago
Jordi Boggiano ff59bbdab0 CS fixer 6 years ago
Jordi Boggiano 0b3bc4ccb9 Merge branch '1.5' 7 years ago
Jordi Boggiano b4df2c9517 Avoid reverting the composer.json in case of a composer require/remove failure that is unrelated to the Solver
Fixes #6821 and adds a different fix to #3464 which is getting reverted
7 years ago
Jordi Boggiano 9a99e86ebc Rename NonRoot to Transitive, refs #6674 7 years ago
Matthew Grasmick 3826e51caa Renaming some methods and props. 7 years ago
Matthew Grasmick f29e98cdf9 Fixes #6661: Allow a given package and its dependencies (including siblings) to be updated. 7 years ago
Jordi Boggiano 890baa2f89 Force remove command to have at least one package name passed, refs #6338 7 years ago
Sven Luijten b4a77e1c0e Add full stop to all command descriptions 7 years ago
Jordi Boggiano 01885777f3 Fix case insensitivity of remove command, fixes #5973 8 years ago