66 Commits (280f02b4bc4b0eee2a39cb19654a3cc0d0235afb)

Author SHA1 Message Date
Ayesh Karunaratne 280f02b4bc
Update HTTP URLs to their HTTPS if they already redirect automatically 4 years ago
François-Xavier de Guillebon 114217c6e3
Fix ini_get() for boolean values 6 years ago
David Yell fb40967349
Added space to concatenation
Fix a missed space for string concatenation
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
Pedro de Carvalho f569833f5a move $length variable outsite foreach (#6828)
the `foreach` over the `prefixDirsPsr4[$search]` won't affect `$length`. 

It's used for the offset of `$logicalPathPsr4`.
7 years ago
David WATTIER e6d648f465 Improve performance on psr4 autoload file finding 7 years ago
Nicolas Grekas 6d4e60b991 Add --apcu-autoloader option to enable APCu caching of found/not-found classes 8 years ago
Fabien Potencier 2853e82400 removed obsolete code 8 years ago
Nicolas Grekas dd67b01ac5 Add ClassLoader::$missingClasses to not trigger a COW 8 years ago
Markus Staab 5752559ae8 fixed typo 9 years ago
Jordi Boggiano 43f7b762e5 Revert "[ClassLoader] performance improvement: use str_replace instead of strtr" 9 years ago
Tobias Schultze a76ce9b25a [ClassLoader] no need to call str_replace on Windows 9 years ago
Tobias Schultze 314741c1ec [ClassLoader] use str_replace instead of strtr 9 years ago
Kévin Dunglas 6c5c53c362 Update the PHPDoc: The autoloader supports PSR-0, PSR-4 and classmap. 9 years ago
Nicolas Grekas fbae6b1589 Revert "Merge pull request #3975 from marc-mabe/hotfix/3974"
This reverts commit bdb6ecb29e, reversing
changes made to 8a12e50a16.
9 years ago
Marc Bennewitz 9455c49053 fixes #3974: Autoloader have to distinguish between files and directories 9 years ago
Bryan Davis 8ceb5714a4 Fix spelling of "Authoritative"
- classMapAuthoratative -> classMapAuthoritative
- getClassMapAuthoratative -> isClassMapAuthoritative
- Don't use elseif since if block returns
10 years ago
Bryan Davis ad1f8e6c5a Add classmap-authoritative config setting
Add a "classmap-authoritative" configuration setting that can be used to
disable searching the various prefix and fallback directories for
classes that have not been registered with the
Composer\Autoload\ClassLoader class map. This setting can be used to
optimize performance by avoiding a potentially large number of
`file_exists` calls when Composer is being used in a program with
additional autoloader facilities. Use of the setting implies
"optimize-autoloader" to ensure that the most complete class map
possible is generated.

Closes #3603
10 years ago
Jordi Boggiano fc3c7838b2 CS fixes 10 years ago
Michael Gusev a531594a4a Issue #3422
https://github.com/composer/composer/issues/3422
10 years ago
François Pluchino 8b5c00bff0 Fix phpdoc 10 years ago
Jordi Boggiano ac497feaba CS fixes 10 years ago
Jordi Boggiano fc9e1d0cff CS fixes, refs #2823 10 years ago
Fred Emmott 7d3274224a Only look for .hh files at runtime if using HHVM
The ClassMap generator will look regardless, but that's not a runtime
cost, so seems desirable (in case composer install/update needs to be
called with php5 for some resaon)
10 years ago
Fred Emmott 734e5e2f2b Add autoload support for .hh files (HHVM)
HHVM is adding support for an alternative extension for files using
HHVM-specific features. Support them in the Class Map and PSR4
autoloaders.

Trivial example: https://github.com/fredemmott/hh_extension_toolset
10 years ago
Nicolas Grekas 00a6f8e38d dedicated scope isolation function for autoload_real 10 years ago
Nicolas Grekas 6d7b9afc4b scope isolation for user includes 10 years ago
Jordi Boggiano 3c5000ad7f CS tweaks and cleanups, allow "" to set fallback dirs, refs #2459 11 years ago
Andreas Hennings b08179e399 PSR-4 ClassLoader: Bug fix: PEAR-like path needs ".php" appended. 11 years ago
Andreas Hennings 5dd3c12d3d Further improve comments. 11 years ago
Andreas Hennings 2e80d148f8 PSR-4 loader: Fix comments: PSR-0 related methods should have comments refering to PSR-0 and prefixes. PSR-4 related methods should have comments refering to PSR-4 and namespaces. 11 years ago
Andreas Hennings c49a651d81 PSR-4 class loader: Add getters for PSR-4 prefixes. Rename PSR-0 related attributes by appending *Psr0. Add more comments. 11 years ago
Andreas Hennings 8142126b16 Add PSR-4 class loader. (tests needed) 11 years ago
Jordi Boggiano 8d0b7f278e CS fixes 11 years ago
Jordi Boggiano 2e25a9298d Document a hack 11 years ago
Jordi Boggiano 976fe48a72 Optimize grabbing of first char 11 years ago
Jordi Boggiano 94175ce432 Make performance of the class loader more constant across classes 11 years ago
Jordi Boggiano bb95a0a788 Fix docblocks 11 years ago
Jordi Boggiano e33aebc75d Fix cs 11 years ago
Joe Holdcroft 7d5e4f76fb Bug fix & changing loop + array_unshift to array_merge 11 years ago
Joe Holdcroft 538cdc914b Making prepend work with fallbacks & coding standards 12 years ago
Joe Holdcroft 6510ee5c4c Refactoring ClassLoader::add() to return early 12 years ago
Joe Holdcroft e74223470a - Adding prefix option to ClassLoader::add()
- Adding set method to ClassLoader for overwriting
12 years ago
Jordi Boggiano 348ec26c91 Always return false or a class name, fixes #1231 12 years ago
hinikato 1989479634 Fixed class normalization for class map case. 12 years ago
Jordi Boggiano 289d23b5cc Optimization for autoload misses, refs #964 12 years ago
Jordi Boggiano 66e9dcddf4 CS fixes 12 years ago
Jordi Boggiano 1df9c62583 Cosmetic fixes to autoload generation 12 years ago