Nicolas Grekas
a812853fe4
Inline PackageEvents constants
2 years ago
Jordi Boggiano
e63e15aea8
Fix usage of react/promise resolve() to prepare for v3
2 years ago
Jordi Boggiano
6a466a120a
Enable strict types on all files
2 years ago
Jordi Boggiano
7abc8da7d3
Add more types
2 years ago
Jordi Boggiano
6da38f83a0
Add parameter types to all the things
2 years ago
Alexander Schranz
1321bfca36
Add return types to closures ( #9 )
2 years ago
Jordi Boggiano
a16ed3d0ed
Add return types to private/internal methods
2 years ago
Jordi Boggiano
4e6d54b731
Fix all 5.3 $this-in-closure usages
2 years ago
Jordi Boggiano
095c36ecf8
Fix some PHPStan errors/..
2 years ago
Jordi Boggiano
bd4d624cc7
Read first from $_SERVER and $_ENV before using getenv ( #10218 )
3 years ago
Jordi Boggiano
3f243d37c3
Add temporary metadata for download size tracking
3 years ago
Paolo Rossi
a921d9b233
Reaching phpstan level 6 in EventDispatcher Exception and Installer folders ( #10192 )
3 years ago
Andreas Schempp
0bed60e631
Correctly resolve promises when package type changes
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
4c9e75c6e5
Fix CS
3 years ago
Jordi Boggiano
6f255d1230
Merge branch '2.0'
3 years ago
Jordi Boggiano
8874ca0e5a
Fix regression introduced in dd54f295fe
3 years ago
Jordi Boggiano
5bf614a762
Merge branch '2.0'
3 years ago
Jordi Boggiano
dd54f295fe
Fix progress output, and remove progress bar on CI env, fixes #9621 , closes #9880
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
Jordi Boggiano
b40b93bc7d
Merge branch '2.0'
3 years ago
Jordi Boggiano
414586ba05
Attempt working around Vagrant filesystem issues, added COMPOSER_RUNTIME_ENV env var (set to vagrant), fixes #9627
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
78d7792eb8
Fix handling of promises for uninstall step when updating to a different install source
3 years ago
Jordi Boggiano
b7d770659b
CS fixes
4 years ago
Jordi Boggiano
4ac6f57d18
Add debug output when SIGINT is received
4 years ago
Jordi Boggiano
b0d308319e
Extract POST_PACKAGE_* events to be executed all at once and not in parallel with async code to avoid edge cases, fixes #9463
4 years ago
Jordi Boggiano
881ec8c751
Use httpdownloader/curl to process install notifications
4 years ago
Jordi Boggiano
2d4e1e0dce
Make sure Transaction sorts operations correctly to begin with
4 years ago
Jordi Boggiano
dc88236c07
Make sure operations are executed in batches, including downloads, when a plugin is present which modifies downloads, fixes #9333
4 years ago
Simon Berger
002fd39bc6
Removed passing of parameters with default value
4 years ago
Jordi Boggiano
f18d91bd58
Fix pre/post-package-install/update/uninstall events receiving a partial list of operations, fixes #9079
4 years ago
Jordi Boggiano
aea074308c
Update batching to install plugin deps before the plugin (alone an own batch)
4 years ago
Jordi Boggiano
085fe4e7e5
Add --no-progress support and a few more fixes
4 years ago
Jordi Boggiano
87a0fc5506
Execute operations in batches to make sure plugins install in the expected order
4 years ago
Jordi Boggiano
9f380d606c
Add basic progress bar capability while waiting for jobs to complete
4 years ago
Jordi Boggiano
8f6e82f562
Add support for aborting running promises cleanly
4 years ago
Jordi Boggiano
a4a617abb4
Reduce amount of Filesystem/ProcessExecutor instantiations, add lots of docblocks
4 years ago
Jordi Boggiano
5761228068
Make installer classes forward promises from downloaders to InstallationManager
4 years ago
Jordi Boggiano
816d8e9d1b
Fix phpstan error
4 years ago
Jordi Boggiano
396ad87fd0
Add handling of ctrl-C on windows for php 7.4+
4 years ago
Jordi Boggiano
a07f9ffba9
Catch SIGINT/Ctrl+C during installs and run cleanups on all packages before exiting
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
e34a2a9f45
Remove unused used vars
4 years ago
Jordi Boggiano
8b0da77a1d
Make sure cleanup is called for every package in case any operation fails to execute
4 years ago
Jordi Boggiano
80505e745e
Fix phpstan issues
4 years ago
Nils Adermann
5bdc0fc9c5
Request jobs replaced by root require / fixed package
...
The only type of request job remaining was "install" which is really a
root requirement. The only other kind of input for the solver is now a
set of fixed packages.
Rules have been updated to account for only two kinds of former job
reason: FIXED or ROOT_REQUIRE. The job property has always been
redundant and has been removed, since reasonData suffices.
Problem reasons are always rules, so the unnecessary wrapping in an
array has been removed.
We now only ever generate a single rule per root require or fixed
package, so there is no need for the solver to special handle disabling
"jobs" anymore, the rule can just be disabled as usual.
For consistency special handling of rules for jobs in problems has been
integrated into the rule class like all other rule reasons. As part of
this change the error message for root requirements has been improved a
bit to make it clearer where the package installation request came from.
The word job has also been removed from operations, which are called
operations, not jobs.
4 years ago
Adam Žurek
406a28708f
updated phpstan to 0.12
4 years ago
Jordi Boggiano
f2058680a7
Remove unused use statements
5 years ago