345 Commits (f9d2feb9cb567a77b3c8b47ce0af114e07d82041)

Author SHA1 Message Date
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
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 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
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
Jordi Boggiano 86677ad172
Avoid scanning files twice when generating optimized autoloaders, fixes #8683 4 years ago
Mathias Berchtold 1ebeb143ae
Fix PHP 8 warnings
The PR fixes this PHP 8 warning:
PHP Deprecated:  Required parameter $ambiguousClasses follows optional parameter $blacklist in phar://.../composer.phar/src/Composer/Autoload/AutoloadGenerator.php on line 339
4 years ago
Jordi Boggiano 34fb609aad
Merge pull request #8652 from clxmstaab/more-ambiguous
report ambiguous classes across all classmaps
4 years ago
Markus Staab cc5c5dbee1 merge fix from https://github.com/composer/composer/pull/8651 4 years ago
Markus Staab 04a18c72ba fix CS 4 years ago
Markus Staab 883a179dec removed superflous code 4 years ago
Markus Staab 61e0bf1cb5 fix typo 4 years ago
remorhaz 339ee953e5 Fix incorrect --no-dev handling of replaced packages 4 years ago
Markus Staab 30b1dfb8a9 report ambiguous classes across all classmaps 4 years ago
Jordi Boggiano 4d74f5ba95
Fix exclude-from-classmap handling to avoid foo matching foo* directories, fixes #8563, refs #8575 4 years ago
Жаков Виталий 48c7442b63 should be || not OR 4 years ago
Жаков Виталий f02989ceba revert formatting 4 years ago
Жаков Виталий a4dc076dc8 fix file load errors 4 years ago
Жаков Виталий 8429a48dac Change only modified files 4 years ago
Jordi Boggiano 3a0d05c148
Merge remote-tracking branch 'and800/fix-autoload-opts' 5 years ago
Andriy Maletsky ec293adabc make optimized autoloader respect PSR standards 5 years ago
Markus Staab e47aa38ad4 Added phpdoc for ComposerAutoloaderInit$SHA1::getLoader() (#8393) 5 years ago
Jordi Boggiano 9d642fe9af
Merge pull request #8085 from danepowell/issue-8065-2
Fixes #8065: Sort plugins deterministically before loading.
5 years ago
ShiraNai7 a2b647a99e Handle absolute phar:// paths in autoload_static.php 5 years ago
Dane Powell 3501423eab
Undo previous change. 5 years ago
Dane Powell d4150cafc4
Move sortPackages to static helper class. 5 years ago
Dane Powell 266a41e046
Refactor sortPackageMap to depend on separate sortPackage function. 5 years ago
Dane Powell 3e6300b5e8
code style fix. 5 years ago
Dane Powell 043b33ed38
Fixes #8065: Sort plugins deterministically before loading. 5 years ago
Den Girnyk 5b78ea529a
Fix: Keep replaced packages for autoload dumping with --no-dev 5 years ago
Markus Staab 766ceccd00 Print number of classes contained within the generated classmap
to give the developer a better feeling about number of dependent classes
6 years ago
Jordi Boggiano a74b63985e Avoid filtering dev-require packages when loading plugins/scripts, fixes #7516 6 years ago
Jordi Boggiano ff59bbdab0 CS fixer 6 years ago
Gabriel Caruso 7d9f8e2247
Improvements
Small improvements, such as remove unused imports, unecessaries casts, parentheses, etc.
6 years ago
Jordi Boggiano eedbd218f5 Make sure circular dependencies do not break the autoload dumper, refs #7316, refs #7348 6 years ago
Philipp Fritsche b0be87177d
Filter dev-dependencies from "dump-autoload --no-dev" , fixes #4343 6 years ago
Nicolas Grekas 0c912d6eee Fix generated static map... 6 years ago
Nicolas Grekas ce70e0e9dd Fix BC of generated static map 6 years ago
Jordi Boggiano 3be9591930 Simplify some ClassLoader code, minor memory improvement, fixes #6937 6 years ago
Vladimir Reznichenko c8615358cb SCA with PHP Inspections (EA Extended) 7 years ago
Jordi Boggiano 17b7387c37 Merge branch '1.4' 7 years ago
Jordi Boggiano 47bc2fa51a Fix exclude-from-classmap being ignored when generating on-the-fly class loader, fixes #6503 7 years ago
Saumini Navaratnam 27b8209990 Fix for issue #6492
Able to include specific finle in phar in "files" option in composer
7 years ago
Li Chuangbo 1f4882a3e6 Revert "Fixed an issue when a phar file is used in "files" option in composer.json"
This reverts commit 41e91f3064.

The commit 41e91f3 in current codebase generates absolute path in
autoload_static.php for phar file.

Also according to http://php.net/manual/en/phar.using.intro.php, the `phar://`
prefix is not needed.
7 years ago
Jordi Boggiano 122e422682 CS fixes 7 years ago
Jordi Boggiano 1dcb2b5758 Merge remote-tracking branch 'nicolas-grekas/apcu' 8 years ago
Jordi Boggiano e9d04f2b2d Merge branch '1.2' 8 years ago
Hans-Joachim Michl 817b2747c7 Fix #5672
This fixes the issue reported in #5672.
It just makes sure the ZendGuard encoded files can be autoloaded correctly.
8 years ago
Nicolas Grekas 6d4e60b991 Add --apcu-autoloader option to enable APCu caching of found/not-found classes 8 years ago
Konstantin.Myakshin dc70b40d34 Use implode instead of join 8 years ago
Kévin Dunglas 3e3fd3c6b1
Remove unused variable 8 years ago
Jordi Boggiano 902a5c32db Add bug ref 8 years ago
AnrDaemon c774d41a9c Fix realpath() failing on Windows 8 years ago
SpacePossum 2ae0800cd3 Remove useless concat. 8 years ago
Nicolas Grekas c6b26c4e96 Make static inlining more selective 8 years ago
Jordi Boggiano c289776d94 Force-collapse multiple slashes into one, fixes #5387 8 years ago
Jordi Boggiano d1a0502f92 Make sure we only replace complete paths to the base-dir/vendor-dir, not partial dir matches, fixes #5289 8 years ago
Jordi Boggiano 4f6693ad70 Fix regression in 0b44662087, fixes #5199 8 years ago
Jordi Boggiano 0b44662087 Disable static autoloader on HHVM, fixes #5192 8 years ago
Nicolas Grekas 40aca80bd9 Workaround https://bugs.php.net/68057 8 years ago
Nicolas Grekas fd2f51cea8 Speedup autoloading on PHP 5.6 & 7.0+ using static arrays 8 years ago
Jordi Boggiano cdea645eab Avoid outputing duplicate warnings for ambiguous class resolution, fixes #4953 8 years ago
Jordi Boggiano bda2c0f9b7 Re-enable include path even when classmap authoritative is present, refs #4556 8 years ago
Jordi Boggiano e05207dbad Merge remote-tracking branch 'bp1222/save-loads' 8 years ago
Jordi Boggiano 8072448cf3 Adjust deduplication of files autoloads, refs 9710b26d3f 9 years ago
Jordi Boggiano 966a982738 CS fixes 9 years ago
Jordi Boggiano 1fe690f810 Autoload generator cleanups 9 years ago
Jordi Boggiano 3748c11709 Simplify files autoload include function, and make sure files are included once per package even if exactly the same, refs #4186 9 years ago
Jordi Boggiano 9710b26d3f Merge remote-tracking branch 'jeskew/feature/require_files_but_once' 9 years ago
Jordi Boggiano c0b49d09f3 Merge remote-tracking branch 'cw-ozaki/no-script-dump-autoload'
Conflicts:
	src/Composer/Autoload/AutoloadGenerator.php
	src/Composer/Command/DumpAutoloadCommand.php
9 years ago
Jordi Boggiano 6f29df01d2 Fix updir regex matching, refs #4607 9 years ago
Omer Karadagli 4046ae042d Up-level relative paths in exclude-from-classmap 9 years ago
Rob Bast 991d25115f fixes #4562 9 years ago
annesosensio 2e4157145b Made wildcard expansion consistent with bash 9 years ago
Jordi Boggiano 6c16510743 Add support for wildcards in exclude-from-classmap, refs #1607 9 years ago
Jordi Boggiano f1b0c073ad Tweaked exclude-from-classmap: windows support, normalize paths and make sure they are all package-relative and do not leak to other packages, refs #1607 9 years ago
Jordi Boggiano 084f6de24e Merge remote-tracking branch 'trivago/add_exclude'
Conflicts:
	doc/04-schema.md
	src/Composer/Autoload/AutoloadGenerator.php
9 years ago