1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-26 20:04:48 +01:00

Use composer PSR-4 autoloader

This commit is contained in:
Dmitry Patsura 2015-09-16 22:00:44 +09:00 committed by Nikita Popov
parent 5118e21c6e
commit e3a9356178
4 changed files with 10 additions and 2 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
vendor/
composer.lock
grammar/kmyacc.exe
grammar/y.output

View File

@ -10,6 +10,8 @@ php:
- nightly
- hhvm
install: composer install
matrix:
allow_failures:
- php: nightly

View File

@ -14,7 +14,9 @@
"ext-tokenizer": "*"
},
"autoload": {
"files": ["lib/bootstrap.php"]
"psr-4": {
"PhpParser\\": "lib/PhpParser"
}
},
"extra": {
"branch-alias": {

View File

@ -2,7 +2,7 @@
namespace PhpParser;
require __DIR__ . '/../lib/bootstrap.php';
require __DIR__ . '/../vendor/autoload.php';
function canonicalize($str) {
// trim from both sides