Jordi Boggiano
d4073a40f9
Prepend runtime-autoloaders so that dependencies get loaded over Composer bundled packages
...
As Composer is generally compatible with newer versions of Symfony than the bundled ones, this should
not be a problem if dependencies are shared, and it ensures that the most relevant code gets loaded.
4 years ago
Ayesh Karunaratne
980aac6eb2
Minor improvement to ClassLoader::register no-op block
...
A recent change in the ClassAutoloader (#9635 ) added support for specifying a vendorDir, and `\Composer\Autoload\ClassLoader::register` now has a if-elseif-else chain.
The first block has a `// no-op` comment, followed by an `elseif` block. It's more readable to `return;`, and remove the `elseif` for readability.
4 years ago
Jordi Boggiano
07b8c23f02
Merge branch '1.10'
4 years ago
Jordi Boggiano
92313447d6
Filter out exclude-from-classmap rules to avoid generating very long regexes, fixes #9487
4 years ago
Nicolas Grekas
ba94445bb9
Ensure InstalledVersions reports info about all currently registered class loaders
4 years ago
Jordi Boggiano
b7d770659b
CS fixes
4 years ago
Jordi Boggiano
b78b2df5bb
Reuse devPackageNames if available instead of filtering the dev packages out by looping through all requirements
4 years ago
Jordi Boggiano
b574f10d9d
Rename mainPackage to rootPackage in AutoloadGenerator and ensure we use RootPackageInterface
4 years ago
Jakub Bouček
8dc5effee7
AutoloadGenerator: Send error HTTP status on error
4 years ago
Jordi Boggiano
56c65a58e2
Make platform-check only check non-dev requires, refs #9412
4 years ago
Jordi Boggiano
8c1355f448
Improve output of platform check further in case errors are hidden
4 years ago
Jordi Boggiano
ec960d12b0
Merge remote-tracking branch 'jakubboucek/feature/jb-platform-check-tigger-error'
4 years ago
Jordi Boggiano
6c31744c04
Disable full platform-check for extensions by default, now set to php-only, refs #9412
4 years ago
Jakub Bouček
3f63bc9205
AutoloadGenerator: Trigger native PHP error on platform checks fails
4 years ago
Jakub Bouček
b83b186ac0
AutoloadGenerator: Send error HTTP status on error
4 years ago
zorn
5aa90baab1
Add new lines to platform reqs issues
4 years ago
Jordi Boggiano
24abd233ec
Merge branch 'master' into code-improvements
4 years ago
Simon Berger
974e7ba296
Removed unneccesary elseifs
4 years ago
Simon Berger
a6475a7118
Removed unused variables, properties and parameters of private functions
4 years ago
Lars Strojny
696f27ca83
Enable APCu if prefix is set
4 years ago
Lars Strojny
0b6abf3b96
APCu prefix as a separate option
4 years ago
Lars Strojny
de0085767c
Sanitize prefix
4 years ago
Lars Strojny
dafd225a35
Allow to pass a string for apcu-autoloader to set the APCu prefix
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
fc462ab978
Merge branch '1.10'
4 years ago
Alexander M. Turek
fc961dce70
Call call_user_func_array() with a numeric arguments array.
4 years ago
Yanick Witschi
bd6f62c535
Consistently reuse the new PlatformRepository::isPlatformPackage() method
4 years ago
Ayesh Karunaratne
e3c75b3e87
Replace cascading str_replace() calls with strtr()
...
Replaces cascading str_replace() calls with a single strtr() call that makes it mode readable and provides a micro performance improvement.
Some instances of cascading str_replace() calls were not refactored due to the potential recurring replacement patterns.
4 years ago
Jordi Boggiano
c8731598cc
Merge branch '1.10'
4 years ago
Graham Campbell
fa799970ad
Replace whitelist with allow list
4 years ago
Ayesh Karunaratne
71ddc487fe
Platform Check: Add a special case for `zend-opcache`.
...
Ref #8946
The platform-check feature maps `ext-X` to `extension_loaded('X')` calls.
While most of the extensions can be tested this way, the `zend-opcache`
extension requires `zend opcache` to be probed instead of the `zend-opcache`
name.
This commit adds a special case for `zend-opcache` to use the correct name
in `extension_loaded()` calls in generated `platform_check.php` file.
4 years ago
Jordi Boggiano
5ef7765cbd
Merge pull request #8923 from staabm/glob-classmap
...
Autoload-Generator: support glob patterns in classmaps
4 years ago
Jordi Boggiano
1e08097a17
Fix phpstan warning
4 years ago
Jordi Boggiano
a9affa8413
Add missing use statement
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
21e708f2c4
Remove upper bound PHP version checks from platform-check as there is not enough value added and it risks causing issues
4 years ago
Markus Staab
6a0e02db1b
Autoload-Generator: support glob patterns in classmaps
4 years ago
Jordi Boggiano
c7fb15faf4
Update to MatchAllConstraint
4 years ago
Jordi Boggiano
45d3e133a4
Avoid checking for unbounded constraints in platform checks
4 years ago
Jordi Boggiano
62d0443e07
Avoid checking for readline in non-CLI contexts, fixes #8909
4 years ago
Jordi Boggiano
6a6ea6057f
Handle provider/replacer packages and avoid checking extensions which are provided by packages, refs #8546
4 years ago
Jordi Boggiano
d494df61ff
Make sure platform-check returns a non-0 exit code if it fails
4 years ago
Jordi Boggiano
755a73baa9
Only check for pcntl on cli SAPI, fixes #8828
4 years ago
Jordi Boggiano
7049bbb714
Switch require_once to require for autoload_static as the once variant seems unnecessary
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
2c8a4a1b93
Add platform-check config option to disable platform_check.php generation, and disable it for Composer
4 years ago
Nicolas Grekas
6463ab9e49
Optimize extension checks
4 years ago
Yanick Witschi
e23710f92d
Implemented php version check in autoload.php ( #8546 )
4 years ago
Ayesh Karunaratne
280f02b4bc
Update HTTP URLs to their HTTPS if they already redirect automatically
5 years ago
Jordi Boggiano
80505e745e
Fix phpstan issues
5 years ago