Jordi Boggiano
91dd175f74
Fix env var handling when variables_order includes E and symfony/console 3.3.15+ is used, fixes #9930
3 years ago
Jordi Boggiano
d864c5743a
Add 7-zip presence check to diagnose command
3 years ago
Jordi Boggiano
a23f8a3d6c
Add gitlab-protocol to config command and schema
3 years ago
Jordi Boggiano
90d72ca686
Tweak validate command output to be slightly more readable, less colorful
3 years ago
Jordi Boggiano
2eaf81c813
Fix a few issues in lock file validation
...
- handle packages present but in wrong version
- handle provide/replace correctly
- do not validate if lock file is missing
refs #9899
3 years ago
Jordi Boggiano
69dc607408
Merge remote-tracking branch 'PrinsFrank/detect-missing-packages-on-validate'
3 years ago
Nils Adermann
1dc39bda75
Merge pull request #9915 from Seldaek/reinstall
...
Add a reinstall command
3 years ago
Jordi Boggiano
4dbdae3ada
Sort uninstalls in reverse order from installs
3 years ago
Jordi Boggiano
5737a34e53
Sort package installs using Transaction
3 years ago
Jordi Boggiano
c8de960018
Throw when repo consistency is in question
3 years ago
Jordi Boggiano
387e504437
Undeprecated dump-autoload --no-dev even though it is mostly not needed anymore, refs #9714
3 years ago
Jordi Boggiano
500efbe233
Add a reinstall command, fixes #3112
3 years ago
Jordi Boggiano
6ac5b46607
Add legend for outdated and show --latest commands, fixes #9716
3 years ago
Jordi Boggiano
7888d3fb97
Align result descriptions to make search output more readable, fixes #9455
3 years ago
Frank Prins
e83e92b2ae
Ignore platform requirements like "ext-*" and "php" when validating the lock file as they don't get locked
3 years ago
Frank Prins
32b70142d9
Replace static anonymous function and replace it with normal anonymous function as static ones are only supported on PHP5.4 and up
3 years ago
Frank Prins
f4d3a1e478
Detect missing packages that are a requirement or dev-requirement but not locked.
3 years ago
Jordi Boggiano
649087d6de
Fix type issues with root package interface
3 years ago
Jordi Boggiano
22cc96682d
Merge branch '2.0'
3 years ago
Jordi Boggiano
b268e20d9f
Fix invalid interface usage
3 years ago
Jordi Boggiano
7b77161b7e
Merge branch '2.0'
3 years ago
Jordi Boggiano
a844fce23e
Fix handling of inline-update-constraints with refs or stability flags, fixes #9847
3 years ago
Jordi Boggiano
3380178798
Introduce a cross-platform safe version of is_readable to support UNC / wsl$ paths on Windows ( #9861 )
3 years ago
Jordi Boggiano
2a50a9400f
Fix install step at the end of init command
3 years ago
Jordi Boggiano
1fd70de32d
Merge branch '2.0'
3 years ago
Jordi Boggiano
99d8e0ad09
Fix install step at the end of init command
3 years ago
Andreas Scheibel
bb1bb022e4
"composer init --autoload" - Interactive generates PSR-4 autoloader in composer.json ( #9829 )
...
- Generates PSR-4 autoload entry in composer.json.
- Run dump-autoload, if no dependencies are set
3 years ago
John Stevenson
c3b76a8532
Upgrade to xdebug-handler 2 ( #9832 )
...
This adds support for Xdebug3 modes and changes the default behaviour
from always restarting if Xdebug is loaded, to only restarting if Xdebug
is active.
Xdebug is considered active if it is loaded, and for Xdebug3, if it is
running in a mode other than `xdebug.mode=off`.
3 years ago
Jordi Boggiano
f13282e555
Change default preferred-install to dist, add --prefer-install=auto|dist|source to allow specifying auto ( #9603 )
...
Fixes #9546
Fixes #9674
3 years ago
Jordi Boggiano
91136213d1
Merge branch '2.0'
3 years ago
Jordi Boggiano
c3ae317a71
Support --no-dev combined with --locked in outdated/show commands, fixes #9788
3 years ago
Jordi Boggiano
dca8bd7197
Merge branch '2.0'
3 years ago
Jordi Boggiano
18e268556d
Fix type warning on php8.1, refs #9770
3 years ago
vitman
ecc8331312
Add dev mode env var for scripts run ( #9793 )
...
Co-authored-by: Vitali Tsyrkin <vitalit@playtika.com>
3 years ago
Jordi Boggiano
bf73a20bc0
Merge branch '2.0'
3 years ago
Brandon Kelly
7652408829
Only call sapi_windows_set_ctrl_handler() for CLI requests ( #9771 )
3 years ago
ochorocho
35210d99a9
Add --format json to search command ( #9747 )
...
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
3 years ago
Jordi Boggiano
4940009f83
Bump phpstan to level 3 ( #9734 )
...
Clean up PackageInterface/CompletePackageInterface, add missing methods, type things in solver as BasePackage, added CompleteAliasPackage, ..
3 years ago
Jordi Boggiano
d0b399b788
Merge branch '2.0'
3 years ago
John Stevenson
07f59a9162
Preserve file permissions on Windows self-update ( #9733 )
...
Windows file operations result in different file permissions depending
if the file is copied or moved. A copy operation applies permissions
from the destination folder (or file if it already exists and does not
use inheritance), while a move operation generally preserves the source
file permissions.
Windows PHP `rename` uses MoveFileEx so if the user is running as an
admin and the destination is in a common (non-user) location, then the
permission for other users will be replaced by the admin user. Likewise
for the UAC elevation feature, which uses the cmd.exe `move` command.
This fix uses copy and delete operations on Windows, so that other users
can continue to run composer.phar
3 years ago
Jordi Boggiano
4851f65318
Remove version argument from why and enforce it for why-not command, refs #9693
3 years ago
Jordi Boggiano
40800df6bd
Fix CS
3 years ago
Julian
c78850ab98
Show a warning if require key changes for dependency ( #9542 )
...
Fixes #9516
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
3 years ago
Jordi Boggiano
d806013091
Add more details when require/init fails to find a matching package due to the platform requirements
3 years ago
Jordi Boggiano
d0aac44ed2
Auto-detect dev-mode in autoload-dump and deprecate dump-autoload --no-dev ( #9714 )
3 years ago
ochorocho
91b6ff27ac
Add --format option to `composer fund` command ( #9678 )
...
* Add --format option to `composer fund` command
Co-authored-by: Jochen Roth <jochen.roth@b13.com>
3 years ago
Jordi Boggiano
8f7597da22
Use a different way to suppress output than changing output verbosity in exec command, fixes #9711
3 years ago
Jordi Boggiano
4a740e3e61
Add warnings when running updates without curl enabled, fixes #9558
4 years ago
Jordi Boggiano
bad4e4edbc
Fix some more wording
4 years ago
Ali Shaikh
6f5c4fcf3e
Improving Composer self-update (version upto date) info message
4 years ago