125 Commits (a4a2b6da876ca6aca7bd12843ca772c1fa4509e8)

Author SHA1 Message Date
Niels Keurentjes c2d9960898 Ensure exception is thrown when classmaps are requested for corrupted or binary files. Refs #4885 9 years ago
Niels Keurentjes 18cd4f966b Added silencer utility to more gracefully handle error suppression without hiding errors or worse. Fixes #4203, #4683 9 years ago
Jordi Boggiano 084f6de24e Merge remote-tracking branch 'trivago/add_exclude'
Conflicts:
	doc/04-schema.md
	src/Composer/Autoload/AutoloadGenerator.php
9 years ago
Rob Bast b523fc0b7b ran fixers 9 years ago
Jordi Boggiano ce08582671 Fix CS 9 years ago
Jordi Boggiano 943107cfe7 Load most specific namespaces always, and dependents before dependencies when building classmaps
This also adds notifications of duplicate classes
9 years ago
Jordi Boggiano e73448ae1e Add possessive quantifiers to avoid backtracking and fix segfault on large files, fixes #4153 9 years ago
Possum 29ca21f30e PHP version checks tweaking 9 years ago
Jordi Boggiano dbfd47eeca CS fixes 9 years ago
msiebeneicher 7522a33079 Merge branch 'master' of https://github.com/composer/composer into add_exclude
# By Jordi Boggiano (30) and others
# Via Jordi Boggiano (37) and Morgan Campbell (1)
* 'master' of https://github.com/composer/composer: (83 commits)
  Update 01-basic-usage.md
  Revert 331425bcb3 as well, fixes #3612
  Revert "Disable overwrites when no-ansi is present, fixes #3612"
  Update deps
  Use justinrainbow/json-schema 1.4
  Improved wording
  Fix docs basic-auth => http-basic
  Add test for Generics class
  Single variable for traits and enums
  Use HHVM_VERSION instead of HPHP_VERSION
  Add support for using classmap to autoload Hack enums
  Re-use existing autoloader suffix if available, fixes #3701
  Report Travis CI build success early
  Test on HHVM nightly releases. Allow to fail.
  Make parseJson safer
  Use get home from Config instead of factory
  Fix env override regression, fixes #3820
  [create-project] Used no progress value for dependencies
  Add docBlock and fix CS
  Fix output of first line of progress when output is not decorated, refs #3818
  ...
9 years ago
Fred Emmott bdf51ab16d Single variable for traits and enums 9 years ago
Fred Emmott cb1ea889d6 Use HHVM_VERSION instead of HPHP_VERSION 9 years ago
Fred Emmott 33ea86573e Add support for using classmap to autoload Hack enums
fixes composer/composer#3823

Ran tests with both PHP5.5.9-1ubuntu4.5 and HHVM 3.6. Test fails on HHVM only
if I back out the ClassMapGenerator.php change.
9 years ago
Rob Bast cb336a5416 Implement writeError throughout Composer 9 years ago
msiebeneicher 3682a9f5a7 * Cleanup code comments 10 years ago
msiebeneicher dad6b05ca7 Merge branches 'add_exclude' and 'master' of https://github.com/trivago/composer into add_exclude
* Resolve conflicts and update unit test
10 years ago
msiebeneicher f28785a49d Merge branches 'add_exclude' and 'master' of https://github.com/trivago/composer into add_exclude
* 'add_exclude' of https://github.com/trivago/composer:

# By Jordi Boggiano (239) and others
# Via Jordi Boggiano (184) and others
* 'master' of https://github.com/trivago/composer: (638 commits)
  Simplified syntax
  github deprecation changes
  fix bug in GitDriver::supports for remote repo
  strict check, testcase(s)
  Fix regex matching and add more tests for addSubNode, refs #3721, fixes #3716
  solve edge case for `composer remove vendor/pkg`
  chmod 644 src/Composer/Command/RemoveCommand.php
  Avoid failing on composer show of lazy providers
  Show more info when a download fails
  Add notion of autoloader skipping autoload-dev rules
  Satis grammar fix.
  remove unused statements
  removed needless output param
  + limit git ls-remote to heads + escape repo url
  add check for remote Repository in GitDriver::supports
  suppress the prefix
  Improve notice about /usr/local/bin
  Reuse current file permissions
  Add the P character to the regex pattern
  Added deprecated warning for the dev option
  ...

Conflicts:
	src/Composer/Autoload/AutoloadGenerator.php
	src/Composer/Autoload/ClassMapGenerator.php
10 years ago
Jordi Boggiano 4dfa3c469e Fix class map generator handling of missing files 10 years ago
Jordi Boggiano a227523c4f Fix php_strip_whitespace bugginess, fixes #3030 10 years ago
Jordi Boggiano 799876dd55 Allow dashes in class names for HHVM support, fixes #2967 10 years ago
Jordi Boggiano ac497feaba CS fixes 10 years ago
Jordi Boggiano 05d9912f97 Ignore classes in ClassMapGenerator 10 years ago
Fabien Potencier 12421dd6b7 fixed class map generator when using a heredoc with spaces 10 years ago
Jordi Boggiano 14f35e812c Merge pull request #2912 from ckwalsh/master
Support generating class map for XHP classes
10 years ago
Jordi Boggiano 49d4054e51 Handle files with no php at all, fixes #2910 10 years ago
Cullen Walsh 57d9e9852d Support generating class map for XHP classes 10 years ago
Denis Sokolov 836534067b Avoid ambiguity warning for example directories as well
In particular, PEAR repositories use a classmap and example directories trigger
multiple false positive warnings.
10 years ago
Jordi Boggiano 0902305196 Fix classmap generator warnings and tests 10 years ago
Jordi Boggiano 8974a1ac92 Ignore ambiguous classes in tests/fixtures dirs, fixes #2858 10 years ago
Daniel Karp e3be04c443 Don't show Ambiguous class resolution warning if class when not ambiguous
if a class or interface is defined twice in the same class, this should not produce a warning
10 years ago
Jordi Boggiano 781c97fa9b Refactor to avoid global static state 10 years ago
Jordi Boggiano c3ab09750d Merge remote-tracking branch 'johnikx/ambiguous-reference-warning' 10 years ago
Jan Brecka b94838169d show warning only instead of throwing exception 10 years ago
Jan Brecka a41370b021 fix plural in exception message 10 years ago
Jan Brecka ea7717c8e5 improve exception message 10 years ago
Jan Brecka 13b57112a9 Throw RuntimeException when ambiguous reference was found. 10 years ago
Fred Emmott 734e5e2f2b Add autoload support for .hh files (HHVM)
HHVM is adding support for an alternative extension for files using
HHVM-specific features. Support them in the Class Map and PSR4
autoloaders.

Trivial example: https://github.com/fredemmott/hh_extension_toolset
10 years ago
Dave Hulbert 81aa3a850c Fix some PHP doc blocks 11 years ago
René Kerner b0ec8ee096 * added exclude-from-classmap feature
* updated to latest master version
11 years ago
Jordi Boggiano e3a10b31ab Abort quickly if the only match is class= in a file 11 years ago
Jordi Boggiano 3346609c5d Skip best adapter since it can create issues on some platforms, fixes #2168 11 years ago
Robert Schönthal 860483e97e reverted simplification cause of php < 5.3.6 11 years ago
Robert Schönthal f75dda759d simplified extension check in classmap generation 11 years ago
Robert Schönthal 963f189fb2 bumped finder version, reverted warning suppression 11 years ago
Robert Schönthal 1a4a104df0 use best finder adapter 11 years ago
Robert Schönthal 4af410e1b9 using finder for classmap generator 11 years ago
Jordi Boggiano 8d0b7f278e CS fixes 11 years ago
Pavel Savinov 831bd844bd Almost PHPDoc problems fixed 11 years ago
David Simon 2acb02cda9 Fixed bug parsing multiline strings with 'escaped' newlines 11 years ago
Jordi Boggiano 514a3cde77 CS fixes 12 years ago
Jordi Boggiano 51eca2cdfc Fix matching of classes in trailing non-php text, fixes #1409 12 years ago
Jordi Boggiano aefe3a0b11 Add support for .inc files in classmap, fixes #1396 12 years ago
Jordi Boggiano cd4d569540 Use old-style named subpattern syntax to avoid problems with antiquated PCRE 12 years ago
Jordi Boggiano 5a01ada383 Restrict unicode chars allowed to what php core allows, refs #1361 12 years ago
Jordi Boggiano 2d7c3c9d27 Tweak #1361 to re-enable support for unicode classnames 12 years ago
Igor Wiedler 530991217b Support classmap generation for classes without space after class name
Class names with multi-byte characters are not supported.

Closes #1360.
12 years ago
Jordi Boggiano 75da832cd3 Fix parsing of large files that go over the PCRE limits 12 years ago
Jordi Boggiano bd72e3765b Restore early return to happen as early as possible 12 years ago
Victor Berchet 86bb1be61f [ClassMapGeneratot] Filter out non php code
Otherwise files like https://github.com/propelorm/Propel/blob/master/generator/lib/behavior/i18n/templates/queryUseI18nQuery.php
would fail ("class" keyword would not be filtered out by php_strip_whitespace())
12 years ago
Victor Berchet ab48114531 [ClassMapGenerator] Improve error message when the path does not exist
i.e. the composer.json has a typo
12 years ago
Victor Berchet ff5c428d60 [ClassMapGenerator] Refine the findClasses method
The code could not throw
12 years ago
Jordi Boggiano 5a763cf010 Fix scanning of empty namespace{} blocks 12 years ago
Jordi Boggiano 4c3e7802a4 Fix traits on 5.3 and handling of empty namespace blocks 12 years ago
Jordi Boggiano 8e9678a5ba Optimize classmap generation by avoiding the use of token_get_all()
First of all this seems way faster than iterating over all tokens, but
especially it reduces memory usage drastically for very large files
12 years ago
Jordi Boggiano ef637c8f1a CS fixes 12 years ago
Jordi Boggiano ee14950972 Add whitelist to the classmap generator to allow skipping of Test files 12 years ago
Jordi Boggiano 383c3f0153 Avoid tokenizing files for nothing 12 years ago
Giulio De Donato 3a53b06f00 just added a \ before RuntimeException (sorry I didn't run the test) 12 years ago
Jordi Boggiano c440b4594a More PSR-2 goodness 12 years ago
Jordi Boggiano 1bd4ccbd54 php-cs-fixer magic 12 years ago
Jordi Boggiano 5c0c101327 Wrap token_get_all for better debuggability 12 years ago
Jordi Boggiano 2d9739bd05 Add support for files in classmap autoload config, fixes #463 12 years ago
Jordi Boggiano 744f4b7c9a Backport trait support in ClassMapGenerator from symfony 12 years ago
Benjamin Eberlei 671cd5ee08 Add tests for ClassMapGenerator 12 years ago
Benjamin Eberlei 1af3604303 Add support for class-map generation. 12 years ago