-
Notifications
You must be signed in to change notification settings - Fork 121
Closed
Description
Hello,
Thanks for the awesome work.
But I have some troubles to run the phpdox file with:
https://github.com/theseer/phpdox/blob/master/phpdox#L46
$found = false;
foreach(array(__DIR__ . '/vendor', __DIR__ . '/../../../vendor') as $vendor) {
if (file_exists($vendor)) {
$found = true;
require __DIR__ . '/src/vendor.php';
}
}
should it not be so: ?
$found = false;
foreach(array(__DIR__ . '/vendor.php', __DIR__ . '/../../../vendor.php') as $vendor) {
if (file_exists($vendor)) {
$found = true;
require __DIR__ . '/src/vendor.php';
}
}
it works for me only so
DIR . '/vendor' does not work for me.
And I have a second question, why you use not $vendor as the require?
$found = false;
foreach(array(__DIR__ . '/vendor.php', __DIR__ . '/../../../vendor.php') as $vendor) {
if (file_exists($vendor)) {
$found = true;
require $vendor;
}
}
thank you in advance for your explanation :-)
Metadata
Metadata
Assignees
Labels
No labels