FriendsOfSymfony / FOSRestBundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony
http://symfony.com/doc/master/bundles/FOSRestBundle/index.html
MIT License
2.79k stars 703 forks source link

Composer 1.10 invalid PSR-4 autoloaded class #2129

Closed michaljusiega closed 4 years ago

michaljusiega commented 4 years ago

After new version of composer to 1.10, and running:

composer dump-autoload --optimize --no-dev --classmap-authoritative

i get:

Deprecation Notice: Class FOS\RestBundle\Examples\RssHandler located in ./vendor/friendsofsymfony/rest-bundle/Resources/doc/examples/RssHandler.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:185

xabbuh commented 4 years ago

Thank you for reporting this. I don't think this will be an issue when Composer 2 is released as this is only code that is part of the documentation. But we could still look into whether we will be able to silence the message.

xabbuh commented 4 years ago

see #2130

michaljusiega commented 4 years ago

Thank you.