Jordi Boggiano
5c0c101327
Wrap token_get_all for better debuggability
13 years ago
Adán Lobato
61eb0119f1
Fixed some mistakes at PHPDoc
13 years ago
Jordi Boggiano
1a255420b0
Ignore aliases in autoload generator
13 years ago
Jordi Boggiano
11edea8aee
Add deprecation warning to old .composer files
13 years ago
Jordi Boggiano
aff7745231
Fix target-dir autoloader
13 years ago
Jordi Boggiano
15ab5868a3
Move composer metafiles back in a composer dir, except autoload.php
13 years ago
Nils Adermann
e74e218bdb
Merge pull request #602 from Seldaek/target_dir_autoload
...
Target dir autoloading for root packages, fixes #139
13 years ago
Jordi Boggiano
ab0ced493c
Make sure BC dir exists
13 years ago
Jordi Boggiano
51711c2f73
Fix multi-prefix handling
13 years ago
Jordi Boggiano
66135538c1
Allow root packages packages with target-dir to be autoloaded, fixes #139
13 years ago
Jordi Boggiano
22fe296ad0
Move .composer files out into the vendor dir, fixes #497
13 years ago
Jordi Boggiano
b999d18365
Improve include_paths generation, fixes #596
13 years ago
Jordi Boggiano
83b52b5b7f
Avoid blowing up on misconfigured autoload entries
13 years ago
Jordi Boggiano
8f24a04a1d
Make sure vendor dir exists before dumping autoloader
13 years ago
Jordi Boggiano
3c07b4338a
Rename include-paths to include-path, add deprecated warnings, only generate file if it is needed
13 years ago
Christoph Hochstrasser
68c12c3516
Do set_include_path only if any package define include paths.
13 years ago
Christoph Hochstrasser
f369104bb1
Packages can define include paths.
13 years ago
Jordi Boggiano
2d9739bd05
Add support for files in classmap autoload config, fixes #463
13 years ago
Jordi Boggiano
30cfb69739
Add support for mapping a namespace prefix onto many dirs in the autoload config
13 years ago
Jordi Boggiano
5f30206c69
Merge remote-tracking branch 'hason/classloader'
13 years ago
Baptiste "Talus" Clavie
15b70e2096
[ClassLoader] Removing trailing whitespaces
13 years ago
Baptiste "Talus" Clavie
6957743aee
[ClassLoader] Corrected indentation
13 years ago
Baptiste "Talus" Clavie
6782287091
[ClassLoader] Got an if-condition out of a unnecessary loop
13 years ago
Martin Hasoň
1f8c9eeb6c
Added parameter $inDirectory to method Filesystem::findShortestPath
13 years ago
Martin Hasoň
afc04c9e53
Fixed creating shortest paths in AutoloadGenerator
13 years ago
Jordi Boggiano
744f4b7c9a
Backport trait support in ClassMapGenerator from symfony
13 years ago
Jordi Boggiano
f8a09eaa3f
Make classmaps relative instead of absolute for file portability
13 years ago
Benjamin Eberlei
671cd5ee08
Add tests for ClassMapGenerator
13 years ago
Benjamin Eberlei
1af3604303
Add support for class-map generation.
13 years ago
Andrew Cobby
2451336284
Fixed syntax error in example code in header comment
13 years ago
Jordi Boggiano
5d414436ba
Avoid phpunit process-isolation errors with the autoload closure
13 years ago
Jordi Boggiano
5da021ffa7
Moved Filesystem to base Util namespace
13 years ago
Jordi Boggiano
ec352b1e84
Add support for adding more than one fallback dir
13 years ago
Jordi Boggiano
0e7c0d918f
Add useIncludePath support to ClassLoader
13 years ago
Jordi Boggiano
5daaba9e62
Extract some code in a AutoloadGenerator::buildPackageMap method
13 years ago
Jordi Boggiano
8c535b1961
Allow the Composer ClassLoader to be unregistered easily
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
Jordi Boggiano
e90a8dc4c9
Fix feedback from 7222c1
13 years ago
Jordi Boggiano
7222c111ed
Make sure multiple autoload files can be used together, fixes #207
13 years ago
Beau Simensen
2d721f5792
Standards fixes per @stof
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
2c367e7f39
Allow multiple fallback dirs
13 years ago
Pierre Minnieur
3b1843827a
removed the `return false` as we only need a positive return information
13 years ago
Pierre Minnieur
4242a05a0e
added Boolean return values for loadClass() method
13 years ago
Jordi Boggiano
d22b80d13b
Allow "" as autoload prefix for fallback dir
13 years ago
Jordi Boggiano
304ce3b375
Fix relative target dirs
13 years ago
Jordi Boggiano
bc88d86983
Make use of Filesystem class in AutoloadGenerator
13 years ago
Jordi Boggiano
cb44ba8325
Fix autoload handling of main project
13 years ago
Jordi Boggiano
f5b7e968b2
Minor adjustments to merged PR
13 years ago
Ant Cunningham
e0400773f7
Adding support for configurable vendor path in composer.json.
13 years ago
Henrik Bjørnskov
8180117584
AutoloadGenerator.php miscalculates the path
...
Add tenary check to make sure relative specified paths arent seen as
absolute.
Fixises #94
13 years ago
Jordi Boggiano
1a7bf8a7f8
Bugfixes
13 years ago
Jordi Boggiano
b7f6cf69ab
Add tests and fixes some issues
13 years ago
Jordi Boggiano
c8859240d2
Add InstallerInstaller, refactored AutoloadGenerator, fixes #59
13 years ago
Jordi Boggiano
5e3c55f171
Add support for multiple packages defining the same namespace prefix
13 years ago
Jordi Boggiano
bd712db727
Reverse-orders namespaces by specificity
13 years ago
Jordi Boggiano
1ca3e5e5e2
Generate a map separated from the autoloader, fixes #74
...
Also the loader is now returned by the autoload.php
13 years ago
Fabien Potencier
03b06ebbca
Fix path for autoloaded libs as the .composer/ dir is now under the vendor/ one.
13 years ago
Fabien Potencier
9e7ebd9280
Fix autoload.php generator
13 years ago
Jordi Boggiano
89caa9b117
Rewrite autoloader to use only PSR-0, remove splitting of PEAR path
13 years ago
Jordi Boggiano
c03a739548
Use psr-0 instead of psr0
13 years ago
Jordi Boggiano
be47991b36
Build a standalone autoload file
13 years ago
Jordi Boggiano
8a571c05db
Fix issues in new autoloader code
13 years ago
Igor Wiedler
808a2c9448
[composer] wrap UniversalClassLoader require in if class_exists
13 years ago
Igor Wiedler
aa7c4b8ef7
[autoload] refactor getFullPackage into populateAutoloadInformation
13 years ago
Igor Wiedler
9d238330b3
[autoload] refactor autoload generation code into a AutoloadGenerator
13 years ago