You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
..
Namespaced Add tests for ClassMapGenerator 13 years ago
Pearlike Add tests for ClassMapGenerator 13 years ago
beta Add tests for ClassMapGenerator 13 years ago
classmap Added tests for traits 12 years ago
php5.4 CS fixes 12 years ago
autoload_classmap.php Move composer metafiles back in a composer dir, except autoload.php 12 years ago
autoload_classmap2.php Move composer metafiles back in a composer dir, except autoload.php 12 years ago
autoload_classmap3.php Automatically generate classmaps for all PSR-0 packages to speed things up, fixes #541, fixes #127 12 years ago
autoload_classmap4.php Revert "Add test and some fixes to allow absolute paths, refs #869" 12 years ago
autoload_classmap5.php Add support for files in classmap autoload config, fixes #463 12 years ago
autoload_functions.php [Autoload] Generate the autoloader_real file in the target directory 12 years ago
autoload_functions_by_dependency.php AutoloadGenerator: respect dependencies, when requiring files 12 years ago
autoload_main.php Minor consistency tweaks 12 years ago
autoload_main2.php Minor consistency tweaks 12 years ago
autoload_main3.php Minor consistency tweaks 12 years ago
autoload_real_files_by_dependency.php ComposerAutoloaderInitXXX::getLoader behaves like a ClassLoader singleton 12 years ago
autoload_real_functions.php ComposerAutoloaderInitXXX::getLoader behaves like a ClassLoader singleton 12 years ago
autoload_real_target_dir.php ComposerAutoloaderInitXXX::getLoader behaves like a ClassLoader singleton 12 years ago
autoload_target_dir.php [Autoload] Generate the autoloader_real file in the target directory 12 years ago
autoload_vendors.php Minor consistency tweaks 12 years ago
include_paths.php Add missing test fixture 12 years ago