Jordi Boggiano
ac497feaba
CS fixes
10 years ago
jakoch
a0e5ead9b0
removed unused variables $baseDir and $vendorDir from "autoloader_real.php" generated by AutoloadGenerator. adjusted tests accordingly.
10 years ago
Jordi Boggiano
05d9912f97
Ignore classes in ClassMapGenerator
10 years ago
Jordi Boggiano
781c97fa9b
Refactor to avoid global static state
10 years ago
Jan Brecka
b94838169d
show warning only instead of throwing exception
10 years ago
Jordi Boggiano
5fb005631a
Tweaking dispatchScript method to be in line with the rest, and add devMode to *_AUTOLOAD_DUMP events
10 years ago
Jordi Boggiano
023ff131aa
Merge remote-tracking branch 'bamarni/autoload-dev'
10 years ago
Jordi Boggiano
cea7c07cf2
Fix CS
10 years ago
Bilal Amarni
db91454a13
added an autoload-dev section
10 years ago
Olivier Laviale
40e484ed38
Fixed an issue that would lead to scattered autoloading files
10 years ago
Nicolas Grekas
00a6f8e38d
dedicated scope isolation function for autoload_real
10 years ago
Jordi Boggiano
ed02997a7b
Fix mode and add docblock, refs #2644
10 years ago
Jordi Boggiano
d26dda5c95
Merge remote-tracking branch 'olvlvl/improved_package_sorting_alone'
10 years ago
Nils Adermann
aef0483cc9
Merge pull request #2667 from nicolas-grekas/master
...
scope isolation for user includes
10 years ago
Nicolas Grekas
6d7b9afc4b
scope isolation for user includes
10 years ago
Jérôme Macias
01cd990995
Fix PSR-4 autoload classmap generator
10 years ago
Olivier Laviale
17278999ba
Coding style compliance
10 years ago
Olivier Laviale
46776c8e23
Improved package sorting
10 years ago
Jordi Boggiano
3c5000ad7f
CS tweaks and cleanups, allow "" to set fallback dirs, refs #2459
11 years ago
Jordi Boggiano
b23742e30c
Merge remote-tracking branch 'donquixote/feature/psr4-complete'
11 years ago
Stan Lemon
5fd3223aec
Updates per @stof
11 years ago
Stan Lemon
d6c46f2091
Allow the autoloader suffix to be configured from a project's composer.json
11 years ago
Andreas Hennings
c0aad84d8b
Validation to make the combination of target-dir with psr-4 illegal.
11 years ago
Andreas Hennings
39c09d5192
Add psr-4 stuff in a few more places.
11 years ago
Andreas Hennings
bbf6278905
AutoloadGenerator to support PSR-4. Tests included.
11 years ago
Jordi Boggiano
50fbfe4d63
Filesystem/autoload fixes for windows, refs #2304 , #2342 , #2365
11 years ago
Jordi Boggiano
7682bc0d60
Merge remote-tracking branch 'Devolicious/feature/no-prepend'
11 years ago
Ruud Denivel
c7bb3ad746
refactor prepend autoloader from cli option to config var (prepend-autoloader) in composer.json
11 years ago
Jordi Boggiano
11a0d16ccc
CS fixes
11 years ago
Ruud Denivel
65c10daaf8
disable prepend option on install
11 years ago
Martin Hasoň
3c0a620ad5
Fixed path analysis
11 years ago
Nils Adermann
242c58c789
Merge pull request #2179 from naderman/plugins
...
Plugins
11 years ago
Jordi Boggiano
9b70b89b8f
Merge pull request #2210 from Firehed/master
...
Change 'generated' notice to @phpdoc-style annotation
11 years ago
Nils Adermann
786ea2929b
Merge remote-tracking branch 'github-composer/master' into plugins
...
* github-composer/master:
Make sure directories we are downloading to are empty
Fix parsing of trunk in SvnDriver, fixes composer/satis#88
Fix file layout in unit tests
Fix parse error thrown in PHP5.5+
11 years ago
Nils Adermann
3960edd64e
Turn EventDispatcher into generic solution handling plugins as well
11 years ago
Alan Hollis
ede2b37ae2
Fix parse error thrown in PHP5.5+
...
When running composer update the file generated by AutoloadGenerator was
not able to be parsed by php due to a require statement inside the foreach
loop.
The fix is to make the statement work the same as the
autoload_namespaces.php require is done.
Issue occured using the following php versions
PHP 5.5.1-2+debphp.org~precise+2
PHP 5.5.3-1+debphp.org~precise+2
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
Benji Schwartz-Gilbert
f5048059d8
Fixes the autoload_namespaces generator for packages in the root of the vendor directory
11 years ago
Andreas Hennings
ce8a9aae5b
Slightly nicer heredoc in AutoloadGenerator::getIncludePathsFile()
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
8e9bdfb4da
Factor the filesCode generation into a separate method.
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
5ba147663d
Use ClassLoader::set to initialize the class loader paths
11 years ago
Jordi Boggiano
dc71ba557b
Consistently use arrays as paths for a given namespace prefix
11 years ago
John Boehr
caad88c047
Update AutoloadGenerator.php
...
This should fix an issue with this commit:
87a42c2f01
This commit is causing a parse error in autoload_namespaces.php:
return array(
'zsql' => 'phar://' . '$vendorDir . '/jbboehr/zsql/build/zsql.phar',
A similar problem happens when using autoload.files as well.
11 years ago
Jordi Boggiano
5264d0637b
Fix regression added in 33af9eea95
, fixes #1841
11 years ago
Jordi Boggiano
566313834a
Add workaround for php bug 64634 in copy
11 years ago
Jordi Boggiano
33af9eea95
Always dump packages, even if only an alias is added, fixes #1809
11 years ago