-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fix autoloading #56
Fix autoloading #56
Conversation
In terms of autoloading, but still need to fix up the copy command.
(after running |
|
@@ -22,7 +22,8 @@ | |||
}, | |||
"autoload": { | |||
"psr-4": { | |||
"WorDBless\\": "src/" | |||
"WorDBless\\": "src/", | |||
"WorDBless\\Composer\\": "src/Composer/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In PSR-4 the filesystem structure matches the namespace.
So line number 26 is not necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't use PSR-4 much/ever (thanks WordPress...) but given the error above Class WorDBless\Composer\InstallDropin is not autoloadable, can not call post-update-cmd script
, it can't hurt anything to have.
When a package is a dependency its |
README: Add this script to your composer.json: I see! This is in the main project.
(Composer docs) |
This worked for me now. Steps to test:
Expected CLI result should include:
and there should be a I'm going to approve this based on that, but @leogermani can you double-check me on ^ before we cut a new version. |
Worked for me as well |
Fixes the following error when using WorDBless as a dependency
and updates the README