1
0
Fork 0
composer/tests/Composer/Test/Autoload/Fixtures
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
2012-09-14 11:21:34 +02:00
..
Namespaced Add tests for ClassMapGenerator 2012-03-05 14:10:01 +01:00
Pearlike Add tests for ClassMapGenerator 2012-03-05 14:10:01 +01:00
beta Add tests for ClassMapGenerator 2012-03-05 14:10:01 +01:00
classmap Added tests for traits 2012-03-21 12:57:50 +01:00
php5.4 CS fixes 2012-08-18 16:22:15 +02:00
autoload_classmap.php Move composer metafiles back in a composer dir, except autoload.php 2012-04-22 22:18:19 +02:00
autoload_classmap2.php Move composer metafiles back in a composer dir, except autoload.php 2012-04-22 22:18:19 +02:00
autoload_classmap3.php Automatically generate classmaps for all PSR-0 packages to speed things up, fixes #541, fixes #127 2012-08-14 19:55:30 +02:00
autoload_classmap4.php Revert "Add test and some fixes to allow absolute paths, refs #869" 2012-07-18 18:40:17 +02:00
autoload_classmap5.php Add support for files in classmap autoload config, fixes #463 2012-04-01 20:23:47 +02:00
autoload_functions.php [Autoload] Generate the autoloader_real file in the target directory 2012-08-06 10:56:57 +02:00
autoload_functions_by_dependency.php AutoloadGenerator: respect dependencies, when requiring files 2012-09-06 15:07:07 +02:00
autoload_main.php Minor consistency tweaks 2012-08-14 19:05:34 +02:00
autoload_main2.php Minor consistency tweaks 2012-08-14 19:05:34 +02:00
autoload_main3.php Minor consistency tweaks 2012-08-14 19:05:34 +02:00
autoload_real_files_by_dependency.php ComposerAutoloaderInitXXX::getLoader behaves like a ClassLoader singleton 2012-09-14 11:21:34 +02:00
autoload_real_functions.php ComposerAutoloaderInitXXX::getLoader behaves like a ClassLoader singleton 2012-09-14 11:21:34 +02:00
autoload_real_target_dir.php ComposerAutoloaderInitXXX::getLoader behaves like a ClassLoader singleton 2012-09-14 11:21:34 +02:00
autoload_target_dir.php [Autoload] Generate the autoloader_real file in the target directory 2012-08-06 10:56:57 +02:00
autoload_vendors.php Minor consistency tweaks 2012-08-14 19:05:34 +02:00
include_paths.php Add missing test fixture 2012-04-19 20:04:38 +02:00