Skip to content

vendor include at binary file #226

@dehenne

Description

@dehenne

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions