{"action":"opened","issue":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/1377","repository_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle","labels_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/1377/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/1377/comments","events_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/1377/events","html_url":"https://github.com/FriendsOfSymfony/FOSRestBundle/issues/1377","id":139280415,"number":1377,"title":"Configuration for loading route annotations from a directory","user":{"login":"aguidis","id":1856652,"avatar_url":"https://avatars.githubusercontent.com/u/1856652?v=3","gravatar_id":"","url":"https://api.github.com/users/aguidis","html_url":"https://github.com/aguidis","followers_url":"https://api.github.com/users/aguidis/followers","following_url":"https://api.github.com/users/aguidis/following{/other_user}","gists_url":"https://api.github.com/users/aguidis/gists{/gist_id}","starred_url":"https://api.github.com/users/aguidis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aguidis/subscriptions","organizations_url":"https://api.github.com/users/aguidis/orgs","repos_url":"https://api.github.com/users/aguidis/repos","events_url":"https://api.github.com/users/aguidis/events{/privacy}","received_events_url":"https://api.github.com/users/aguidis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-08T13:38:57Z","updated_at":"2016-03-08T13:38:57Z","closed_at":null,"body":"Since this merged [PR](https://github.com/FriendsOfSymfony/FOSRestBundle/pull/1339/files) we should be able to load all route annotations in a folder.\r\n\r\nI tried this syntax : \r\n\r\n```yml\r\napi:\r\n    type: rest\r\n    resource: \"@AppBundle/Controller/\"\r\n```\r\n\r\nBut I still have this error message : \r\n\r\n> Can't find class for controller \"@AppBundle/Controller/\" in /home/me/src/AppBundle/Resources/config/api-routing.yml (which is being imported from \"/home/me/app/config/routing.yml\").\r\n\r\nI fetched the version with the tag \"2.0.0-BETA1\"\r\n\r\n```yml\r\n\"friendsofsymfony/rest-bundle\": \"2.0.0-BETA1\",\r\n```\r\nAnd I checked if I had the class ``FOS\\RestBundle\\Routing\\Loader\\DirectoryRouteLoader`` and it's the case so I should not use the right syntax I think\r\n\r\nThanks for your help"}}