{"action":"opened","issue":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/1164","labels_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/1164/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/1164/comments","events_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/1164/events","html_url":"https://github.com/FriendsOfSymfony/FOSRestBundle/issues/1164","id":110449647,"number":1164,"title":"rest controllers could not be put outside a bundle controller directory.","user":{"login":"makasim","id":143206,"avatar_url":"https://avatars.githubusercontent.com/u/143206?v=3","gravatar_id":"","url":"https://api.github.com/users/makasim","html_url":"https://github.com/makasim","followers_url":"https://api.github.com/users/makasim/followers","following_url":"https://api.github.com/users/makasim/following{/other_user}","gists_url":"https://api.github.com/users/makasim/gists{/gist_id}","starred_url":"https://api.github.com/users/makasim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makasim/subscriptions","organizations_url":"https://api.github.com/users/makasim/orgs","repos_url":"https://api.github.com/users/makasim/repos","events_url":"https://api.github.com/users/makasim/events{/privacy}","received_events_url":"https://api.github.com/users/makasim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-08T13:21:24Z","updated_at":"2015-10-08T13:21:24Z","closed_at":null,"body":"let's say I have src/Backoffice/Api directory which is where I want to keep all my rest controllers. Right now I cannot do it because of the exception.\r\n\r\n```\r\nException \"The \"Backoffice\\Api\\CartController\" class does not look like a controller class (it must be in a \"Controller\" sub-namespace and the class name must end with \"Controller\")\"\"\r\n```\r\n\r\nWhich is thrown from `Sensio\\Bundle\\FrameworkExtraBundle\\Templating\\TemplateGuesser` line 57.\r\n\r\nThis happens if I use `@Rest\\View()` annotation (without template attribute set). Configuring it like this `@Rest\\View(template=\"FrameworkExtraBundleTriesToGuessTemplateAndFailsThisIsWorkaround\")`\r\n\r\nsolves the problem.\r\n\r\nPay attention to I am using only json in the api, and guessing template on every request, even if it is not needed looks strange to me.\r\n\r\n\r\n"}}