Jordi Boggiano
bda2c0f9b7
Re-enable include path even when classmap authoritative is present, refs #4556
9 years ago
Jordi Boggiano
e05207dbad
Merge remote-tracking branch 'bp1222/save-loads'
9 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
Jordi Boggiano
c5e5bc6fc6
Merge pull request #4589 from dunglas/patch-1
...
Update the autoloader PHPDoc: PSR-4 instead of PSR-0
9 years ago
Kévin Dunglas
6c5c53c362
Update the PHPDoc: The autoloader supports PSR-0, PSR-4 and classmap.
9 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
David Walker
e0a6419992
When classmap authoratative is enabled, there should be no reason to load 3 files, and process them when autoloader will return false
9 years ago
Jordi Boggiano
6582c337d0
Fix typo
9 years ago
Jordi Boggiano
1160b782c8
Deduplicate classmap creation and add support for loading classmaps on the fly for plugins & co
9 years ago
Rob Bast
b523fc0b7b
ran fixers
9 years ago
Jordi Boggiano
ce08582671
Fix CS
9 years ago
Bryan Davis
cc2b9cfca5
Add cli argument for classmap-authoritative
...
Add a `--classmap-authoritative (-a)` argument to `composer install`,
`composer update` and `composer dumpautoload`. This enables the same
authoritative classmap behavior as the existing `classmap-authoritative`
configuration setting. The option can be used for creating highly
optimized production autoloaders via `composer install --no-dev
--optimize-autoloader --classmap-authoritative` for projects where
multiple autoloaders are present and unnecessary `file_exists` calls
introduce performance issues.
Closes #4361
9 years ago
voroks
154092ba1a
Added removing file 'include_path.php' (if it is empty).
9 years ago
voroks
457bc20c34
Explicit comparison was removed.
9 years ago
voroks
cca42ff0be
Fixed indents: we should use spaces instead tabulation.
9 years ago
voroks
4fa1cb2e9c
Removing file autoload_files.php was added ( #4254 )
9 years ago
Rob Bast
593af4b1bf
add license file during autoload dumping
...
closes #4288
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
Jonathan Eskew
42b025776a
Move file identifier calculation to compile time
9 years ago
Jordi Boggiano
b17ccbfa0d
Avoid invalid warnings when scanning the same file twice, fixes #4195 , fixes #4197
9 years ago
Jonathan Eskew
24c4322672
Use 5.3 compatible array syntax
9 years ago
Jonathan Eskew
868a872df2
Push the hash to $GLOBALS
9 years ago
Jonathan Eskew
61ed7a9547
Explicitly check if a file has already been required before requiring it
9 years ago
Jordi Boggiano
943107cfe7
Load most specific namespaces always, and dependents before dependencies when building classmaps
...
This also adds notifications of duplicate classes
9 years ago
Jordi Boggiano
e73448ae1e
Add possessive quantifiers to avoid backtracking and fix segfault on large files, fixes #4153
9 years ago
elazar
6c029a850c
Resolves #4138 : Removed *Test.php filtering from AutoloadGenerator->dump()
9 years ago
Possum
29ca21f30e
PHP version checks tweaking
9 years ago
Jordi Boggiano
164dc2a097
Reuse prefix only if no prefix is defined
9 years ago
Marc Bennewitz
9455c49053
fixes #3974 : Autoloader have to distinguish between files and directories
9 years ago
Jordi Boggiano
dbfd47eeca
CS fixes
9 years ago
msiebeneicher
7522a33079
Merge branch 'master' of https://github.com/composer/composer into add_exclude
...
# By Jordi Boggiano (30) and others
# Via Jordi Boggiano (37) and Morgan Campbell (1)
* 'master' of https://github.com/composer/composer : (83 commits)
Update 01-basic-usage.md
Revert 331425bcb3
as well, fixes #3612
Revert "Disable overwrites when no-ansi is present, fixes #3612"
Update deps
Use justinrainbow/json-schema 1.4
Improved wording
Fix docs basic-auth => http-basic
Add test for Generics class
Single variable for traits and enums
Use HHVM_VERSION instead of HPHP_VERSION
Add support for using classmap to autoload Hack enums
Re-use existing autoloader suffix if available, fixes #3701
Report Travis CI build success early
Test on HHVM nightly releases. Allow to fail.
Make parseJson safer
Use get home from Config instead of factory
Fix env override regression, fixes #3820
[create-project] Used no progress value for dependencies
Add docBlock and fix CS
Fix output of first line of progress when output is not decorated, refs #3818
...
9 years ago
Fred Emmott
bdf51ab16d
Single variable for traits and enums
9 years ago
Fred Emmott
cb1ea889d6
Use HHVM_VERSION instead of HPHP_VERSION
9 years ago
Fred Emmott
33ea86573e
Add support for using classmap to autoload Hack enums
...
fixes composer/composer#3823
Ran tests with both PHP5.5.9-1ubuntu4.5 and HHVM 3.6. Test fails on HHVM only
if I back out the ClassMapGenerator.php change.
9 years ago
Jordi Boggiano
b296e654eb
Re-use existing autoloader suffix if available, fixes #3701
9 years ago