124 Commits (ff59bbdab0fb5bef212f291bbf9f152c7467fd7d)

Author SHA1 Message Date
Andreas Hennings bbf6278905 AutoloadGenerator to support PSR-4. Tests included. 11 years ago
Martin Hasoň 3c0a620ad5 Fixed path analysis 11 years ago
Jordi Boggiano 38917c2047 Add parallel build to travis script 11 years ago
Nils Adermann 242c58c789 Merge pull request #2179 from naderman/plugins
Plugins
11 years ago
Nils Adermann 3960edd64e Turn EventDispatcher into generic solution handling plugins as well 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 8d0b7f278e CS fixes 11 years ago
Taylor Otwell 60cd875cc2 Added "pre-autoload-dump" event.
This event is fired before the autoload file is generated, for either
an install or update command.
11 years ago
Jordi Boggiano dc71ba557b Consistently use arrays as paths for a given namespace prefix 11 years ago
Jordi Boggiano 5264d0637b Fix regression added in 33af9eea95, fixes #1841 11 years ago
Jordi Boggiano 3ce71466f1 Treat empty paths in autoloader as ".", fixes #1727 11 years ago
Martin Hasoň 07d2f17afe [Autoload] Make all paths relative for file portability 11 years ago
Martin Hasoň 3499610631 Fixed tests for autoloader generator 11 years ago
Martin Hasoň 48444a028c Added support for vendor dir excluded from working dir 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 8d55b9cced Merge remote-tracking branch 'ronnylt/script-event-post-dump-autoload'
Conflicts:
	tests/Composer/Test/Autoload/AutoloadGeneratorTest.php
12 years ago
Jordi Boggiano b4c2347b24 Test fixes 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
Pierre du Plessis 255c0be7fc Added tests for include path flag 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 e5cbf83185 Added post-autoload-dump script event. 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 c5f3a6febd Fix optimized autoloader generation for PSR-0 configs that include non-existent dirs, fixes #1286 12 years ago
Jordi Boggiano de3188ca7d Remove target dir for classmap autoloads of the root package, fixes #1308 12 years ago
Jordi Boggiano 487e66d0a9 Allow loading of multiple composer autoloaders concurrently, fixes #1248 12 years ago
Martin Hasoň 1ff1b8ac1f Sorted generated classmap 12 years ago
Martin Hasoň c63f0d9642 Preserved original position of package if required packages are before this 12 years ago
Martin Hasoň e75abcbb41 Fixed order of packages in the classmap autoloader 12 years ago
Martin Hasoň b683aeb586 Fix expected values in tests for autoloader generator 12 years ago
Filip Procházka 9d8db4e148 AutoloadGenerator: respect dependencies, when requiring files 12 years ago
Christophe Coevoet 66b83a39d2 Removed a PHP notice when dumping the autoloader
This occured when the root package has a target-dir but does not have
configure a PSR-0 autoloader.
Fixes #1028
12 years ago
Jordi Boggiano d6de4a0036 Rename Package interfaces to reduce BC issues 12 years ago
Jordi Boggiano 2af2c27168 Add regression test for files autoload in root package, fixes #880 12 years ago
Jordi Boggiano 44d7d4a38e Make PSR0 scanning optional 12 years ago
Jordi Boggiano 48c46ce3b6 Automatically generate classmaps for all PSR-0 packages to speed things up, fixes #541, fixes #127 12 years ago
Jordi Boggiano 4f0ad98905 Always include the ClassLoader since autoload_real is included only once, refs #963 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
Victor Berchet 963fedc9a5 [Autoload] remove closures because of a bug in APC
https://bugs.php.net/bug.php?id=52144
https://bugs.php.net/bug.php?id=61576
12 years ago
Jordi Boggiano 6fb5d26474 Revert "Add test and some fixes to allow absolute paths, refs #869"
This reverts commit a2a2f4af59.
12 years ago
Jordi Boggiano a2a2f4af59 Add test and some fixes to allow absolute paths, refs #869 12 years ago
Sylvain Filteau 51404659ef Change the order of the include paths
Composer installed libraries should have precedence over other libraries in the
system (like PEAR installed libraries).

Made composer prepend it's include_path configuration instead of appending it.
12 years ago
Jordi Boggiano b876dcbafb Use the config object to define the vendor dir and not the installation manager 12 years ago
Jordi Boggiano 1df9c62583 Cosmetic fixes to autoload generation 12 years ago
Benjamin Eberlei 5c5e962b5a Add Files Autoloading key. This is a necessary feature to allow purely or partly functional libraries to be "autoloadable" by composer by calling require_once on every file in the "autoload"."files" list. 12 years ago
Jordi Boggiano 1a255420b0 Ignore aliases in autoload generator 12 years ago
Jordi Boggiano 15ab5868a3 Move composer metafiles back in a composer dir, except autoload.php 12 years ago
Jordi Boggiano 51711c2f73 Fix multi-prefix handling 12 years ago
Jordi Boggiano 66135538c1 Allow root packages packages with target-dir to be autoloaded, fixes #139 12 years ago
Jordi Boggiano b999d18365 Improve include_paths generation, fixes #596 12 years ago
Jordi Boggiano 3c07b4338a Rename include-paths to include-path, add deprecated warnings, only generate file if it is needed 12 years ago
Christoph Hochstrasser af52c8118e Some tests for include path setting 12 years ago
Jordi Boggiano 2d9739bd05 Add support for files in classmap autoload config, fixes #463 12 years ago
Jordi Boggiano 30cfb69739 Add support for mapping a namespace prefix onto many dirs in the autoload config 12 years ago
Martin Hasoň fde38dacec Added test for generated classmap files 12 years ago
Jordi Boggiano f8a09eaa3f Make classmaps relative instead of absolute for file portability 12 years ago
Jordi Boggiano 27eb249aab Merge remote-tracking branch 'beberlei/ClassMaps' 12 years ago
till 23902023e5 fix namespace 12 years ago
Benjamin Eberlei 671cd5ee08 Add tests for ClassMapGenerator 12 years ago
Wookieb f93135b3bd Cosmetic tests fix - remove test directories 13 years ago
Wookieb 8d3b40ff8e Tests should remove created directories after testing process 13 years ago
Jordi Boggiano 5da021ffa7 Moved Filesystem to base Util namespace 13 years ago
Jordi Boggiano d18e749f85 Test fix, fixes #274 13 years ago
Jordi Boggiano 15d78e6ad1 Fix autoload generator with vendor-dir = working-dir 13 years ago
Martin Hasoň d27989c808 Fixed obscure code 13 years ago
Beau Simensen e8fcf281fa Autoload Generator handles multiple PSR-0 paths
The Autoload Generator was not behaving exactly as expected.
This PR is an alternate version of #203 based on some of
@stof's input on that PR.

The main differences are:

 * The main package is added first instead of last
 * parseAutoloads returns a different structure:
     array('psr-0' => array('Ns\\Foo' => array('installDir')))
 * dump and createLoader updated to account for new structure
13 years ago
Jordi Boggiano 116b17dfc0 Fix test suite for OSX 13 years ago
Jordi Boggiano 21d74328e3 Cosmetic fixes 13 years ago
Jordi Boggiano abb926a60c Add tests for autoloader 13 years ago