Skip to content

Commit

Permalink
Update dependencies and autoload handling
Browse files Browse the repository at this point in the history
  • Loading branch information
theseer committed Jun 11, 2017
1 parent 0a5053d commit 7588cd1
Show file tree
Hide file tree
Showing 5 changed files with 263 additions and 257 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
/phpdoc
/sample
/vendor
/composer.lock
/tests/data/*/xml
/tests/data/*/docs

/tools
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
"ext-iconv" : "*",
"ext-fileinfo": "*",
"ext-mbstring": "*",
"theseer/fdomdocument": ">=1.6.1",
"theseer/directoryscanner" : ">=1.3.0",
"theseer/fxsl" : ">=1.1",
"phpunit/php-timer" : ">=1.0.6",
"nikic/php-parser" : "3.0.2"
"theseer/fdomdocument": "^1.6",
"theseer/directoryscanner" : "^1.3.0",
"theseer/fxsl" : "^1.1",
"phpunit/php-timer" : "^1.0",
"nikic/php-parser" : "^3.0"
},
"autoload": {
"classmap": [
Expand Down
253 changes: 253 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions phpdox
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
/*
* Copyright (c) 2010-2016 Arne Blankerts <[email protected]>
* Copyright (c) 2010-2017 Arne Blankerts <[email protected]>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
Expand Down Expand Up @@ -59,15 +59,14 @@ $found = false;
foreach(array(__DIR__ . '/vendor', __DIR__ . '/../..') as $vendor) {
if (file_exists($vendor . '/autoload.php')) {
$found = true;
require __DIR__ . '/src/vendor.php';
require $vendor . '/autoload.php';
break;
}
}

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

0 comments on commit 7588cd1

Please sign in to comment.