venveo / craft-oauthclient

A free to use OAuth 2.0 Client helper for Craft 3 developers
MIT License
9 stars 3 forks source link

Fix Composer 2 compatibility #32

Closed brandonkelly closed 4 years ago

brandonkelly commented 4 years ago

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

Deprecation Notice: Class venveo\oauthclient\assetbundles\OauthClient\OauthClientAsset located in ./vendor/venveo/craft-oauthclient/src/assetbundles/oauthclient/OauthClientAsset.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/oauthclient src/assetbundles/OauthClient

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.)

Mosnar commented 4 years ago

Thanks, those assetbundles were unused anyway. Just released 2.1.8 with the fix!

brandonkelly commented 4 years ago

Perfect, thanks!