Martin Hasoň
|
07d2f17afe
|
[Autoload] Make all paths relative for file portability
|
11 years ago |
Martin Hasoň
|
48444a028c
|
Added support for vendor dir excluded from working dir
|
11 years ago |
Jordi Boggiano
|
e1eb35455f
|
Merge pull request #1743 from sandermarechal/abs-path
Fix shortest absolute paths from cwd to classmap path
|
11 years ago |
Sander Marechal
|
132f2a9d5d
|
Cache getcwd() result
|
11 years ago |
Sander Marechal
|
c10e25a945
|
Use cross-platform absolute path check
|
11 years ago |
Jordi Boggiano
|
bb95a0a788
|
Fix docblocks
|
11 years ago |
Sander Marechal
|
d7697574ff
|
Fix shortest absolute paths from cwd to classmap path
|
11 years ago |
Jordi Boggiano
|
3cc5698e7b
|
Allow PHP 5.2 autoloaders to consume namespace, classmap and include path files, fixes #1730
|
11 years ago |
Jordi Boggiano
|
d929a0813a
|
Prepend the ClassLoader autoloader to avoid calling other previously registered autoloaders, fixes #1699
|
11 years ago |
Jordi Boggiano
|
87a42c2f01
|
Fix CS
|
11 years ago |
Jordi Boggiano
|
95a6be2396
|
Merge remote-tracking branch 'mnishihan/master'
|
11 years ago |
Jordi Boggiano
|
8d55b9cced
|
Merge remote-tracking branch 'ronnylt/script-event-post-dump-autoload'
Conflicts:
tests/Composer/Test/Autoload/AutoloadGeneratorTest.php
|
12 years ago |
Jordi Boggiano
|
5a484cb3a9
|
Make sure target-dir plays well with classmap and files autoload, for root and deps, refs #1550
|
12 years ago |
Jordi Boggiano
|
ab1256e135
|
Merge remote-tracking branch 'cmodijk/master'
|
12 years ago |
Cliff Odijk
|
5127fe8359
|
added type check to autoloader fixes #1504
|
12 years ago |
Jordi Boggiano
|
5165008be7
|
Merge remote-tracking branch 'pierredup/master'
|
12 years ago |
Jordi Boggiano
|
e33aebc75d
|
Fix cs
|
12 years ago |
Jordi Boggiano
|
1bd01a8b0b
|
Merge remote-tracking branch 'joeholdcroft/autoload-namespace-prepend'
|
12 years ago |
Joe Holdcroft
|
7d5e4f76fb
|
Bug fix & changing loop + array_unshift to array_merge
|
12 years ago |
M N Islam Shihan
|
41e91f3064
|
Fixed an issue when a phar file is used in "files" option in composer.json
|
12 years ago |
Pierre du Plessis
|
84b34b70e0
|
Add config option to set if the PHP include path should automatically be used when generating the autoloader
|
12 years ago |
Ronny López
|
f627c3c603
|
Make Event devMode argument optional (false by default).
|
12 years ago |
Ronny López
|
e5cbf83185
|
Added post-autoload-dump script event.
|
12 years ago |
Jordi Boggiano
|
c80cb76b9b
|
Always prepend autoloaders to avoid tools (i.e. phpunit) taking precedence over the project autoloader
|
12 years ago |
Jordi Boggiano
|
514a3cde77
|
CS fixes
|
12 years ago |
Jordi Boggiano
|
1beccf9f0f
|
Fix access of the static loader property
|
12 years ago |
Martin Hasoň
|
45d7eb5b53
|
Fixed generating packageMap in AutoloaderGenerater (fixes generating include_paths.php file)
|
12 years ago |
Martin Hasoň
|
03e355f063
|
Fixed topological sorting of packages in AutoloadGenerator
|
12 years ago |
Jordi Boggiano
|
51eca2cdfc
|
Fix matching of classes in trailing non-php text, fixes #1409
|
12 years ago |
Jordi Boggiano
|
aefe3a0b11
|
Add support for .inc files in classmap, fixes #1396
|
12 years ago |
Jordi Boggiano
|
c5f3a6febd
|
Fix optimized autoloader generation for PSR-0 configs that include non-existent dirs, fixes #1286
|
12 years ago |
Jordi Boggiano
|
cd4d569540
|
Use old-style named subpattern syntax to avoid problems with antiquated PCRE
|
12 years ago |
Jordi Boggiano
|
5a01ada383
|
Restrict unicode chars allowed to what php core allows, refs #1361
|
12 years ago |
Jordi Boggiano
|
2d7c3c9d27
|
Tweak #1361 to re-enable support for unicode classnames
|
12 years ago |
Igor Wiedler
|
530991217b
|
Support classmap generation for classes without space after class name
Class names with multi-byte characters are not supported.
Closes #1360.
|
12 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
|
de3188ca7d
|
Remove target dir for classmap autoloads of the root package, fixes #1308
|
12 years ago |
Jordi Boggiano
|
75da832cd3
|
Fix parsing of large files that go over the PCRE limits
|
12 years ago |
Jordi Boggiano
|
bd72e3765b
|
Restore early return to happen as early as possible
|
12 years ago |
Victor Berchet
|
86bb1be61f
|
[ClassMapGeneratot] Filter out non php code
Otherwise files like https://github.com/propelorm/Propel/blob/master/generator/lib/behavior/i18n/templates/queryUseI18nQuery.php
would fail ("class" keyword would not be filtered out by php_strip_whitespace())
|
12 years ago |
Victor Berchet
|
ab48114531
|
[ClassMapGenerator] Improve error message when the path does not exist
i.e. the composer.json has a typo
|
12 years ago |
Victor Berchet
|
ff5c428d60
|
[ClassMapGenerator] Refine the findClasses method
The code could not throw
|
12 years ago |
Jordi Boggiano
|
5a763cf010
|
Fix scanning of empty namespace{} blocks
|
12 years ago |
Jordi Boggiano
|
2368185774
|
Merge branch 'classmap-optim'
|
12 years ago |
Jordi Boggiano
|
487e66d0a9
|
Allow loading of multiple composer autoloaders concurrently, fixes #1248
|
12 years ago |
Jordi Boggiano
|
4c3e7802a4
|
Fix traits on 5.3 and handling of empty namespace blocks
|
12 years ago |
Jordi Boggiano
|
8e9678a5ba
|
Optimize classmap generation by avoiding the use of token_get_all()
First of all this seems way faster than iterating over all tokens, but
especially it reduces memory usage drastically for very large files
|
12 years ago |
Jordi Boggiano
|
348ec26c91
|
Always return false or a class name, fixes #1231
|
12 years ago |