mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-01-17 15:18:17 +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
|
- nightly
|
||||||
- hhvm
|
- hhvm
|
||||||
|
|
||||||
|
install: composer install
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- php: nightly
|
- php: nightly
|
||||||
|
@ -14,7 +14,9 @@
|
|||||||
"ext-tokenizer": "*"
|
"ext-tokenizer": "*"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"files": ["lib/bootstrap.php"]
|
"psr-4": {
|
||||||
|
"PhpParser\\": "lib/PhpParser"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace PhpParser;
|
namespace PhpParser;
|
||||||
|
|
||||||
require __DIR__ . '/../lib/bootstrap.php';
|
require __DIR__ . '/../vendor/autoload.php';
|
||||||
|
|
||||||
function canonicalize($str) {
|
function canonicalize($str) {
|
||||||
// trim from both sides
|
// trim from both sides
|
||||||
|
Loading…
x
Reference in New Issue
Block a user