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

Class FOS\RestBundle\Tests\Fixtures\User does not exist #2275

Closed yuseferi closed 3 years ago

yuseferi commented 3 years ago

Hi there, I have this problem, hope somebody knows how to resolve it.

definitation:

on APP_ENV=dev everything goes well, but when I switch to APP_ENV=prod I will face In EndpointRouterCompilerPass.php line 130:

Class FOS\RestBundle\Tests\Fixtures\User does not exist

PSR Autoloader "autoload": { "psr-4": { "App\": "src/" } }, "autoload-dev": { "psr-4": { "Tests\App\": "tests/unit", "Tests\Behat\": "tests/behat", "App\Behat\": "behat/bootstrap/" } },

I hope somebody knows a solution for this.

Thanks,

yuseferi commented 3 years ago

just for the record for guys that could have a similar problem:

I just updated the version of "friendsofsymfony/rest-bundle": "^2.8", and the problem was gone :).

fsmeier commented 3 years ago

For the record: It seems that there are folders missing from 2.7.4 to 2.8.x :/