Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

APi platform autoloader issue in Symfony app

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

like image 245
Bogdan Dubyk Avatar asked Jan 31 '26 14:01

Bogdan Dubyk


1 Answers

It has been fixed. Update api platform bundle: https://github.com/api-platform/core/pull/5575

like image 72
DMat Avatar answered Feb 03 '26 08:02

DMat