-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies and autoload handling
- Loading branch information
Showing
5 changed files
with
263 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
/phpdoc | ||
/sample | ||
/vendor | ||
/composer.lock | ||
/tests/data/*/xml | ||
/tests/data/*/docs | ||
|
||
/tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
|
@@ -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); | ||
} | ||
|
Oops, something went wrong.