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:
parent
5118e21c6e
commit
e3a9356178
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
vendor/
|
||||
composer.lock
|
||||
grammar/kmyacc.exe
|
||||
grammar/y.output
|
@ -10,6 +10,8 @@ php:
|
||||
- nightly
|
||||
- hhvm
|
||||
|
||||
install: composer install
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
- php: nightly
|
||||
|
@ -14,7 +14,9 @@
|
||||
"ext-tokenizer": "*"
|
||||
},
|
||||
"autoload": {
|
||||
"files": ["lib/bootstrap.php"]
|
||||
"psr-4": {
|
||||
"PhpParser\\": "lib/PhpParser"
|
||||
}
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace PhpParser;
|
||||
|
||||
require __DIR__ . '/../lib/bootstrap.php';
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
function canonicalize($str) {
|
||||
// trim from both sides
|
||||
|
Loading…
Reference in New Issue
Block a user