304 Commits (bd6403a6bef36fdbefdb287dc7e26286d5e06e5e)

Author SHA1 Message Date
Jordi Boggiano bd6403a6be
Fix newly surfaced errors 2 years ago
Jordi Boggiano 615530f0a1
Merge branch '2.2' into main, update baseline (2085, 104) 2 years ago
Jordi Boggiano bb0edce095
Fixed lock file being used when lock:false is in config, refs #10715 (#10726) 2 years ago
Jordi Boggiano be4b70ce79
Fix phpstan issues 2 years ago
Jordi Boggiano 27a449eaf7
Move duplicate key parsing from bootstrap to validate/diagnose to reduce bootstrap time a bit 2 years ago
Jordi Boggiano 8e93566c18
Validate config schema before loading it, fixes #10685 2 years ago
Jordi Boggiano 6a466a120a
Enable strict types on all files 2 years ago
Jordi Boggiano 6da38f83a0
Add parameter types to all the things 2 years ago
Jordi Boggiano 84f0f19112
Split Composer into PartialComposer & Composer classes to avoid nullable properties on Composer for non-fully-loaded instances, add types to Composer\Factory 2 years ago
Jordi Boggiano a16ed3d0ed
Add return types to private/internal methods 2 years ago
Jordi Boggiano 32852304d0
Make use of some new PHP features 2 years ago
Niels Vanpachtenbeke 1c928466a9
Remove code blocks for php <7.2 compatibility (#10417) 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
Helmut Hummel f12a5b8214
Expose path to autoload in a global var for binaries (#10137)
Always create proxy files for package binaries,
to avoid not working binaries in case the package
was installed from a path repository and is itself linked

If the binary is a PHP script, a global variable is now exposed,
which holds the path to the vendor/autoload.php file.
This variable can the be used in the binaries to include this file
without guessing where the path to the vendor folder might be.

Additionally it is now checked on binary creation whether
the reference binary has a shebang and if not, generates
a much simple proxy code, because the stream wrapper code,
that is required for PHP <8 to omit the shebang from the output,
can be skipped.

Fixes: #10119

Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
3 years ago
Stephan 44c5b6cde6
Config: add source option for command to show where a config value is loaded from (#10129) 3 years ago
Jordi Boggiano bd4d624cc7
Read first from $_SERVER and $_ENV before using getenv (#10218) 3 years ago
Jordi Boggiano 44b69ba77f
Upgrade php-cs-fixer to 3.x and fix CS 3 years ago
Joseph Wynn 44a2aa9be4
Log when COMPOSER_AUTH environment variable is malformed, but do not throw an error. Fixes #10208. (#10209)
Co-authored-by: Joseph Wynn <joseph@wildlyinaccurate.com>
3 years ago
Martin Herndl 3645d3042c
Add types to root namespace (#10213) 3 years ago
Jordi Boggiano b209816056
Type annotations 3 years ago
Jordi Boggiano d3c176ec69
PHPStan Level 5 (#10070)
* Bump PHPStan to level 5

* Update seld/phar-utils to latest

* Add phpstan-setup / phpstan scripts
3 years ago
Jordi Boggiano 005c55185a
Fix support for writing into UNC paths, and comparing UNC paths correctly in InstalledVersions, fixes #9993 3 years ago
Jordi Boggiano e87a150f41
Make sure schema issues are always reported correctly, but not in init when Composer is not required, fixes #9986 3 years ago
Jordi Boggiano 5780caf208
Fix link when no composer.json is present, fixes #9966 3 years ago
Jordi Boggiano 4c9e75c6e5
Fix CS 3 years ago
Abi أب 759897e7e8
Update cache dir on macOS to follow OS guidelines (now $HOME/Library/Caches/Composer) (#9898)
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
3 years ago
Jordi Boggiano bc31351b5b
Only show getting started warning for non-global composer load 3 years ago
Jordi Boggiano eb9616a82b
Debug info improvements 3 years ago
Jordi Boggiano 378a5b72b9
More open_basedir fixes, refs #9541 4 years ago
Jordi Boggiano 3eb419d2d0
Fix is_dir check to not fail on open_basedir restrictions, fixes #9541 4 years ago
Jordi Boggiano b7d770659b
CS fixes 4 years ago
Jordi Boggiano fec44f883c
Always load the current InstalledVersions when writing to disk, fixes #9457 4 years ago
Jordi Boggiano 431dc0d526
Add sync helper to give plugins utilities to work with async stuff more easily when one does not care about async 4 years ago
Jordi Boggiano f966de94a9
Merge branch '1.10' 4 years ago
Jordi Boggiano 159bb84fa6
Allow running the config command to disable tls even if openssl is not present, fixes #9198 4 years ago
Simon Berger 4e8a36556c Removed deprecated code from 1.x 4 years ago
Simon Berger bae227ec2d Changed all substr calls used to compare fragments of text to strpos
Some additional code cleanups in those classes

Reverted change causing issues
4 years ago
Jordi Boggiano 90332f1dbd
Add a readonly mode to the cache, fixes #9150 4 years ago
Jordi Boggiano 7cecc6ad3f
Avoid attempting to use /etc/xdg as base config home, fixes #9053, refs #9045 4 years ago
Jordi Boggiano 10590dc519
Improve support for XDG and default to XDG config dir if both that and ~/.composer are available, fixes #9045 4 years ago
Jordi Boggiano 7a37e78a30
Speed up installer tests by avoiding lots of bootstrapping and git processes 4 years ago
Jordi Boggiano 9c78eda7db
Fix FileDownloader::update impl to handle promises 4 years ago
Jordi Boggiano 0dad963cd8
Add executeAsync to ProcessExecutor and allow Loop class to wait on it in addition to HttpDownloader 4 years ago
Jordi Boggiano a4a617abb4
Reduce amount of Filesystem/ProcessExecutor instantiations, add lots of docblocks 4 years ago
Jordi Boggiano d42e12c514
Make config non optional, fixes #8896 4 years ago
Jordi Boggiano 557fb873ee
Add a way to retrieve the Loop instance from Composer to be able to wait on promises to integrate things 4 years ago
Jordi Boggiano 0d1922dc27
Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions 4 years ago
Jordi Boggiano 44a4429978
Remove PEAR installer/downloader/repos/..., fixes #8778 4 years ago
Jordi Boggiano 4e7ff690c6
Revert lock file as well when a require command operation failed to complete 4 years ago
Jordi Boggiano 006985a0ea
Execute all operations at once which lets us download all packages in parallel then install only once all downloads succeeded, fixes #2847
This also changes the PRE/POST_PACKAGE_INSTALL/UPDATE/UNINSTALL events to have less information available on them, repositorySet, request and policy are gone
5 years ago