bhashkar007 / guest-entries-notification

A plugin to get notification when an entry is created.
MIT License
4 stars 4 forks source link

Fix Composer 2 compatibility #6

Closed brandonkelly closed 3 years ago

brandonkelly commented 3 years ago

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

Deprecation Notice: Class by\guestentriesnotification\assetbundles\GuestEntriesNotification\GuestEntriesNotificationAsset located in ./vendor/by/guest-entries-notification/src/assetbundles/guestentriesnotification/GuestEntriesNotificationAsset.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/guestentriesnotification src/assetbundles/GuestEntriesNotification

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

wallacio commented 3 years ago

This looks like a straightforward fix. Are there any updates or will it ever be fixed? It's holding us back updating stuff!

bhashkar007 commented 3 years ago

@wallacio It has been fixed now.