I have a fresh installation of symfony with usage of https://github.com/dunglas/symfony-docker and additionally I added api platfomr by running composer require api and afterwards I able to open api documentaion in broswer but I can't run any CLI command and getting error
The autoloader expected class "ApiPlatform\Symfony\Bundle\Command\OpenApiCommand" to be defined in file "/srv/app/vendor/composer/../api-platform/core/src/Symfony/Bundle/Command/OpenApiCommand.php". The file was found but the class was not in
it, the class name or namespace probably has a typo.
I'm a bit confused as I literally did nothing except of havig fresh symfony installation and additional Api platform dependency
It has been fixed. Update api platform bundle: https://github.com/api-platform/core/pull/5575
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With