Dolphiq / craft3-plugin-sitemap

A craft 3 plugin that provides an easy way to enable and manage an XML sitemap for search engines like Google
MIT License
28 stars 18 forks source link

PSR-4 autoloading warning upon installation #52

Open johnfmorton opened 3 years ago

johnfmorton commented 3 years ago

When I installed this today from the command line, I received the following notice:

Deprecation Notice: Class dolphiq\sitemap\assetbundles\Sitemap\SitemapAsset located in ./vendor/dolphiq/sitemap/src/assetbundles/sitemap/SitemapAsset.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201

It doesn't stop it from working immediately.

remmelt commented 3 years ago

Class dolphiq\sitemap\assetbundles\sitemap\dist\SitemapAsset located in ./vendor/dolphiq/sitemap/src/assetbundles/sitemap/SitemapAsset.php does not comply with psr-4 autoloading standard. Skipping.

This is because the sitemap folder in assetbundles is not with an uppercase S.

This on composer 2.0.7