1
0
Fork 0
Commit Graph

36 Commits (672e7d85a1cb2c2c9eaf5f89f33f886ac8b183f8)

Author SHA1 Message Date
Jordi Boggiano 5da021ffa7 Moved Filesystem to base Util namespace 2012-02-09 18:45:28 +01:00
Jordi Boggiano ec352b1e84 Add support for adding more than one fallback dir 2012-02-09 18:18:43 +01:00
Jordi Boggiano 0e7c0d918f Add useIncludePath support to ClassLoader 2012-02-09 15:42:47 +01:00
Jordi Boggiano 5daaba9e62 Extract some code in a AutoloadGenerator::buildPackageMap method 2012-02-07 11:12:03 +01:00
Jordi Boggiano 8c535b1961 Allow the Composer ClassLoader to be unregistered easily 2012-02-07 11:11:39 +01:00
Jordi Boggiano 15d78e6ad1 Fix autoload generator with vendor-dir = working-dir 2012-02-02 16:38:48 +01:00
Martin Hasoň d27989c808 Fixed obscure code 2012-02-02 15:36:38 +01:00
Jordi Boggiano e90a8dc4c9 Fix feedback from 7222c1 2012-01-23 10:28:15 +01:00
Jordi Boggiano 7222c111ed Make sure multiple autoload files can be used together, fixes #207 2012-01-22 22:40:04 +01:00
Beau Simensen 2d721f5792 Standards fixes per @stof 2012-01-12 21:40:53 -06:00
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
2012-01-12 21:14:30 -06:00
Jordi Boggiano 2c367e7f39 Allow multiple fallback dirs 2011-12-21 16:56:18 +01:00
Pierre Minnieur 3b1843827a removed the `return false` as we only need a positive return information 2011-12-21 13:30:25 +01:00
Pierre Minnieur 4242a05a0e added Boolean return values for loadClass() method 2011-12-21 11:50:24 +01:00
Jordi Boggiano d22b80d13b Allow "" as autoload prefix for fallback dir 2011-12-18 21:09:40 +01:00
Jordi Boggiano 304ce3b375 Fix relative target dirs 2011-12-04 22:13:11 +01:00
Jordi Boggiano bc88d86983 Make use of Filesystem class in AutoloadGenerator 2011-12-04 18:35:44 +01:00
Jordi Boggiano cb44ba8325 Fix autoload handling of main project 2011-11-21 11:33:30 +01:00
Jordi Boggiano f5b7e968b2 Minor adjustments to merged PR 2011-11-20 22:03:11 +01:00
Ant Cunningham e0400773f7 Adding support for configurable vendor path in composer.json. 2011-11-18 13:31:50 -05:00
Henrik Bjørnskov 8180117584 AutoloadGenerator.php miscalculates the path
Add tenary check to make sure relative specified paths arent seen as
absolute.

Fixises #94
2011-11-07 09:29:37 +01:00
Jordi Boggiano 1a7bf8a7f8 Bugfixes 2011-11-06 01:09:48 +01:00
Jordi Boggiano b7f6cf69ab Add tests and fixes some issues 2011-11-05 23:54:05 +01:00
Jordi Boggiano c8859240d2 Add InstallerInstaller, refactored AutoloadGenerator, fixes #59 2011-11-05 23:54:01 +01:00
Jordi Boggiano 5e3c55f171 Add support for multiple packages defining the same namespace prefix 2011-11-03 21:10:39 +01:00
Jordi Boggiano bd712db727 Reverse-orders namespaces by specificity 2011-11-03 21:05:01 +01:00
Jordi Boggiano 1ca3e5e5e2 Generate a map separated from the autoloader, fixes #74
Also the loader is now returned by the autoload.php
2011-10-30 20:29:06 +01:00
Fabien Potencier 03b06ebbca Fix path for autoloaded libs as the .composer/ dir is now under the vendor/ one. 2011-10-30 09:51:16 +01:00
Fabien Potencier 9e7ebd9280 Fix autoload.php generator 2011-10-29 07:24:30 +02:00
Jordi Boggiano 89caa9b117 Rewrite autoloader to use only PSR-0, remove splitting of PEAR path 2011-10-27 22:09:01 +02:00
Jordi Boggiano c03a739548 Use psr-0 instead of psr0 2011-10-24 12:03:11 +02:00
Jordi Boggiano be47991b36 Build a standalone autoload file 2011-10-23 21:23:37 +02:00
Jordi Boggiano 8a571c05db Fix issues in new autoloader code 2011-10-23 19:40:22 +02:00
Igor Wiedler 808a2c9448 [composer] wrap UniversalClassLoader require in if class_exists 2011-10-23 19:40:16 +02:00
Igor Wiedler aa7c4b8ef7 [autoload] refactor getFullPackage into populateAutoloadInformation 2011-10-23 19:40:14 +02:00
Igor Wiedler 9d238330b3 [autoload] refactor autoload generation code into a AutoloadGenerator 2011-10-23 19:40:12 +02:00