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

Symfony4 - Route Config: type rest throwing error #1786

Closed juliusstoerrle closed 6 years ago

juliusstoerrle commented 6 years ago

With Symfony4 (Beta4) i'm getting following exception:

In FilelLoader.php (168):

Class could not be determined for Controller identified by "../src/Controller/" in ../src/Controller/ (which is being imported from "...config/routes.yaml"). Make sure there is a loader supporting the "rest" type.

In RestRouteLoader.php line 147:

Class could not be determined for Controller identified by "../src/Controller/".

Current Route Config:

app:
    type: rest
    resource: ../src/Controller/

Has there been any change recently?

juliusstoerrle commented 6 years ago

I would be happy to help, maybe someone can tell me whats the best way to debug this error?

juliusstoerrle commented 6 years ago

Possibily a Duplicate (not the same error) but at least related to #1775 and #1776

juliusstoerrle commented 6 years ago

Well got arund to test today. This will be fixed when merging #1776. As its a duplicate to #1775 I'm closing