-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When installed globally local autoloader is loaded #18
Comments
Info about solution a problem is on #2 (comment) |
Thank you. |
I did something bad? I don't see you PR here or in previous repository. |
No, not at all.
I'm not involved in the development. |
There must be popular packages/boilerplates for PHP CLI tools! |
Same issue since I moved from the abandoned package (pre 1.0) to this one. Problem is this order here PHP-Parallel-Lint/parallel-lint Lines 39 to 44 in de81f0a
If favours autoloading from the current execution directory. To me this feels kind of odd, when I run the I.e. I would propose this order instead: $autoloadLocations = [
__DIR__ . '/vendor/autoload.php',
__DIR__ . '/../vendor/autoload.php',
__DIR__ . '/../../../autoload.php',
__DIR__ . '/../../autoload.php',
getcwd() . '/vendor/autoload.php',
getcwd() . '/../../autoload.php',
]; Not sure what scenarios would require (or even prefer) Reason:
Not a big issue likely, I'll work it around on my end somehow probably. |
Thank you for your comment. I think about why is Commit what added it:
I speculate about removing lines from code:
See here somebody a reason why let lines in codebase? |
Please reconsider using a CLI framework/boilerplate. e.g. https://github.com/elliotjreed/php-cli-boilerplate |
Not really, we would need to ask the original author. If this package is supposed to run via composer, then I think it's safe to nuke them even. Changing the order might be possible but if left in I would suggest to understand why; removal is easier 😄 |
The text was updated successfully, but these errors were encountered: