Markus Staab
e47aa38ad4
Added phpdoc for ComposerAutoloaderInit$SHA1::getLoader() ( #8393 )
5 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
Jordi Boggiano
4f6693ad70
Fix regression in 0b44662087
, fixes #5199
9 years ago
Jordi Boggiano
0b44662087
Disable static autoloader on HHVM, fixes #5192
9 years ago
Jordi Boggiano
1dc65a40d3
Fix tests, refs #5174
9 years ago
Nicolas Grekas
fd2f51cea8
Speedup autoloading on PHP 5.6 & 7.0+ using static arrays
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
Jonathan Eskew
42b025776a
Move file identifier calculation to compile time
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
jakoch
a0e5ead9b0
removed unused variables $baseDir and $vendorDir from "autoloader_real.php" generated by AutoloadGenerator. adjusted tests accordingly.
11 years ago
Nicolas Grekas
00a6f8e38d
dedicated scope isolation function for autoload_real
11 years ago
Nicolas Grekas
6d7b9afc4b
scope isolation for user includes
11 years ago
Andreas Hennings
bbf6278905
AutoloadGenerator to support PSR-4. Tests included.
11 years ago
Jordi Boggiano
9b70b89b8f
Merge pull request #2210 from Firehed/master
...
Change 'generated' notice to @phpdoc-style annotation
11 years ago
Alan Hollis
1892f57e47
Fix file layout in unit tests
...
Changes made in previious commit made the output of the file change,
which in turn broke the unit tests. This commit updates the fixtures to
match the new output.
11 years ago
Firehed
046d55e886
Change 'generated' notice to @phpdoc-style annotation
...
While it isn't an official part of the syntax, it integrates better with other
tools that ignore diffs on generated code.
11 years ago
Andreas Hennings
5369904dd3
autoload_files.php should return an array of files, instead of directly including them.
11 years ago
Andreas Hennings
f98a8f472e
Generate an autoload_files.php next to autoload_namespaces.php and autoload_classes.php
11 years ago
Jordi Boggiano
5ba147663d
Use ClassLoader::set to initialize the class loader paths
12 years ago
Jordi Boggiano
d929a0813a
Prepend the ClassLoader autoloader to avoid calling other previously registered autoloaders, fixes #1699
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
c80cb76b9b
Always prepend autoloaders to avoid tools (i.e. phpunit) taking precedence over the project autoloader
12 years ago
Jordi Boggiano
1beccf9f0f
Fix access of the static loader property
12 years ago
Jordi Boggiano
487e66d0a9
Allow loading of multiple composer autoloaders concurrently, fixes #1248
12 years ago
Adrien Brault
fd58c24a9f
ComposerAutoloaderInitXXX::getLoader behaves like a ClassLoader singleton
...
Calling ComposerAutoloaderInit::getLoader twice when a package requires a .php file containing functions, lead to the functions to be declared twice, and cause an error.
In my case, using behat + symfony2extension + assetic, the error that occured:
PHP Fatal error: Cannot redeclare assetic_init() (previously declared in vendor/kriswallsmith/assetic/src/functions.php:20) in /vendor/kriswallsmith/assetic/src/functions.php on line 26
Fatal error: Cannot redeclare assetic_init() (previously declared in /vendor/kriswallsmith/assetic/src/functions.php:20) in /vendor/kriswallsmith/assetic/src/functions.php on line 26
12 years ago
Jordi Boggiano
4f0ad98905
Always include the ClassLoader since autoload_real is included only once, refs #963
12 years ago
Jordi Boggiano
30fdf379aa
Minor consistency tweaks
12 years ago
Victor Berchet
d2dc73e361
[Autoload] Set $vendorDir et $baseDir in ComposerAutoloaderInitTargetDir::getLoader()
12 years ago
Victor Berchet
4c82c35dbc
[Autoload] Generate the autoloader_real file in the target directory
12 years ago
Victor Berchet
2c065416eb
[Autoload] generate an autoload_real.php file
12 years ago