craft-locate icon indicating copy to clipboard operation
craft-locate copied to clipboard

Fix Composer 2 compatibility

Open brandonkelly opened this issue 4 years ago • 2 comments

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

Deprecation Notice: Class swixpop\locate\assetbundles\Locate\LocateAsset located in ./vendor/swixpop/locate/src/assetbundles/locate/LocateAsset.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/locate src/assetbundles/Locate

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

brandonkelly avatar Oct 26 '20 21:10 brandonkelly

@swixpop bump

lenvanessen avatar Nov 04 '20 15:11 lenvanessen

@brandonkelly I decided to clone the repo to keep the plug-in working with more recent versions from Craft, is there any way you guys can reach out to the author to see if he's interested in transferring the project, so that the plug-in store will also contain a working extension as well?

github

lenvanessen avatar Feb 24 '22 11:02 lenvanessen