Skip to content

Commit 7588cd1

Browse files
committed
Update dependencies and autoload handling
1 parent 0a5053d commit 7588cd1

File tree

5 files changed

+263
-257
lines changed

5 files changed

+263
-257
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
/phpdoc
88
/sample
99
/vendor
10-
/composer.lock
1110
/tests/data/*/xml
1211
/tests/data/*/docs
13-
12+
/tools

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
"ext-iconv" : "*",
2121
"ext-fileinfo": "*",
2222
"ext-mbstring": "*",
23-
"theseer/fdomdocument": ">=1.6.1",
24-
"theseer/directoryscanner" : ">=1.3.0",
25-
"theseer/fxsl" : ">=1.1",
26-
"phpunit/php-timer" : ">=1.0.6",
27-
"nikic/php-parser" : "3.0.2"
23+
"theseer/fdomdocument": "^1.6",
24+
"theseer/directoryscanner" : "^1.3.0",
25+
"theseer/fxsl" : "^1.1",
26+
"phpunit/php-timer" : "^1.0",
27+
"nikic/php-parser" : "^3.0"
2828
},
2929
"autoload": {
3030
"classmap": [

composer.lock

Lines changed: 253 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpdox

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env php
22
<?php
33
/*
4-
* Copyright (c) 2010-2016 Arne Blankerts <[email protected]>
4+
* Copyright (c) 2010-2017 Arne Blankerts <[email protected]>
55
* All rights reserved.
66
*
77
* Redistribution and use in source and binary forms, with or without modification,
@@ -59,15 +59,14 @@ $found = false;
5959
foreach(array(__DIR__ . '/vendor', __DIR__ . '/../..') as $vendor) {
6060
if (file_exists($vendor . '/autoload.php')) {
6161
$found = true;
62-
require __DIR__ . '/src/vendor.php';
62+
require $vendor . '/autoload.php';
63+
break;
6364
}
6465
}
6566

6667
if (!$found) {
6768
fwrite(STDERR,
68-
'You need to set up the project dependencies using the following commands:' . PHP_EOL .
69-
'wget http://getcomposer.org/composer.phar' . PHP_EOL .
70-
'php composer.phar install' . PHP_EOL
69+
"The vendor directory was not found at the expected locations.\nDid you run composer install?\n\n"
7170
);
7271
exit(1);
7372
}

0 commit comments

Comments
 (0)