Skip to content
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 Composer 2 compatibility #12

Closed
brandonkelly opened this issue Oct 26, 2020 · 2 comments
Closed

Fix Composer 2 compatibility #12

brandonkelly opened this issue Oct 26, 2020 · 2 comments
Assignees

Comments

@brandonkelly
Copy link

When installing this plugin with Composer 1, the following deprecation notice is output:

Deprecation Notice: Class bitboxde\minifier\assetbundles\Minifier\MinifierAsset located in ./vendor/bitboxde/minifier/src/assetbundles/minifier/MinifierAsset.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0.

Composer 2 was released on October 24, and is now the default version that will be installed, so it’s critical that this gets resolved ASAP, or people will start getting Class not found errors.

To fix, run the following command:

> git mv src/assetbundles/minifier src/assetbundles/Minifier

Then commit your change and tag a new release.

(Note that you must use the git mv command, as Git tends to not notice case-sensitive file renames otherwise.)

@bitboxfw bitboxfw self-assigned this Oct 27, 2020
bitboxfw added a commit that referenced this issue Oct 27, 2020
- Composer v2.0 compatibility #12
@bitboxfw
Copy link
Contributor

Thanks for your help and guidance brandon. Fixed with version 2.0.4

@brandonkelly
Copy link
Author

Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants