Jordi Boggiano
6da38f83a0
Add parameter types to all the things
3 years ago
Alexander Schranz
1321bfca36
Add return types to closures ( #9 )
3 years ago
Jordi Boggiano
a16ed3d0ed
Add return types to private/internal methods
3 years ago
Jordi Boggiano
7e50f37b87
Remove some dead code and deprecate JsonFormatter, JsonFile::JSON_* constants, and TlsHelper
3 years ago
Jordi Boggiano
4e6d54b731
Fix all 5.3 $this-in-closure usages
3 years ago
Jordi Boggiano
24ce1eddbd
Add composer/pcre dependency and use it everywhere instead of preg_*
3 years ago
Jordi Boggiano
7e3626362e
Add support for warnings/infos keys to report more complex information to diverse Composer versions
3 years ago
Jordi Boggiano
bd4d624cc7
Read first from $_SERVER and $_ENV before using getenv ( #10218 )
3 years ago
Jordi Boggiano
024f0eda53
Add a bunch of type info to Util namespace
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
40800df6bd
Fix CS
4 years ago
Jordi Boggiano
f37f3dab04
Fix abort of downloads and zip extraction to happen immediately, fixes #9390
4 years ago
Jordi Boggiano
40095b20dc
Allow tweaking the max parallel http requests via env var, fixes #9671
4 years ago
Nils Adermann
d665301368
Rewrite while if return as do while
4 years ago
Nils Adermann
c043fe841b
Remove sleeps from curl handling, select it is responsible for waiting
...
The current sleeps mean that large files download slowly as select would
return quickly when data has arrived and needs to be processed, but the
sleep waits while the buffers are full.
On the flipside we need to ensure that some code that would keep the CPU
busy if run too often does not get run every time select returns.
4 years ago
Jordi Boggiano
08f0af4623
Add docblocks to HttpDownloader, refs #9209
4 years ago
Jordi Boggiano
b7d770659b
CS fixes
4 years ago
Julian van den Berkmortel
23a1d783db
Reject job within "HttpDownloader" when an exception is thrown, refs #9424
4 years ago
Jordi Boggiano
3f6899946b
Avoid using curl when it has been disabled, fixes #9423
4 years ago
Jordi Boggiano
36a9c47830
Fix typo from a637072058
4 years ago
Jordi Boggiano
a637072058
Fix canUseCurl logic to allow local_cert/local_pk to reach curl, refs #9384
4 years ago
Jordi Boggiano
1d7ed333c9
Make sure curl is only used when safe to do so, fixes #9381
4 years ago
Jordi Boggiano
34bdc6cbf2
Detect and hint for solutions for common curl errors, fixes #9376
4 years ago
Jordi Boggiano
472f78bff1
Auto-disable misbehaving curl downloader on php 5, refs #9002
4 years ago
Simon Berger
a6475a7118
Removed unused variables, properties and parameters of private functions
4 years ago
Simon Berger
7ef87626ac
Fixed self usage in closure fails on PHP 5.3
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
0dad963cd8
Add executeAsync to ProcessExecutor and allow Loop class to wait on it in addition to HttpDownloader
4 years ago
Jordi Boggiano
40a35abb94
Resolve options when creating requests to fix 5.3 build
5 years ago
Jordi Boggiano
4cb74d33e6
Forward default HttpDownloader options to RemoteFilesystem/CurlDownloader, fixes #8757
5 years ago
Adam Žurek
406a28708f
updated phpstan to 0.12
5 years ago
Jordi Boggiano
eb3e3063b8
Revert "When network is disabled all uncached requests result in 404"
...
This reverts commit c325112670
.
5 years ago
Nils Adermann
c325112670
When network is disabled all uncached requests result in 404
5 years ago
Nils Adermann
7ef3a31de7
Make TransportException in network disabled case clearer
...
Otherwise it's a bit hard to work out what request triggered the exception
5 years ago
Jordi Boggiano
d37642d9f2
Add missing use
6 years ago
Jordi Boggiano
3f5a986170
Show warning in all 400/500 responses if available, fixes #7814
6 years ago
Matthew Brown
65903aacfd
Fix type issues ( #7996 )
...
* Fix type issues found by Psalm
6 years ago
Jordi Boggiano
6c782599f1
Make IOInterface implement psr-4 LoggerInterface, fixes #5180
6 years ago
Jordi Boggiano
3dfcae99a9
Add parallel download capability to FileDownloader and derivatives
6 years ago
Jordi Boggiano
fc03ab9bba
Add COMPOSER_DISABLE_NETWORK env var for debugging
6 years ago
Jordi Boggiano
5d2b3276eb
Avoid starting all jobs immediately
6 years ago
Jordi Boggiano
64384f8b15
Fix tests
6 years ago
Jordi Boggiano
9986b797fb
Add support for redirects/retries in curl downloader
6 years ago
Jordi Boggiano
fd11cf3618
Port/extract most behavior of RemoteFilesystem to CurlDownloader
6 years ago
Jordi Boggiano
09fd239f24
Fix factory test
6 years ago
Jordi Boggiano
f946d8eb5a
More RemoteFilesystem usage removals and some repository/vcs driver refactorings
6 years ago
Jordi Boggiano
713bc4de1d
Minor fixes and updated the rest of the code/tests to use HttpDownloader
6 years ago
Jordi Boggiano
56805ecafe
Add HttpDownloader to wrap/replace RemoteFilesystem with a new curl multi implementation
6 years ago