Skip to content

Instantly share code, notes, and snippets.

@Bendihossan
Created December 19, 2012 14:34
Show Gist options
  • Save Bendihossan/4337058 to your computer and use it in GitHub Desktop.
Save Bendihossan/4337058 to your computer and use it in GitHub Desktop.
AnnotationException: [Semantical Error] The annotation "@fos\RestBundle\Controller\Annotations\View" in method MyProject\Bundle\ContentBundle\Controller\ContentController::indexAction() does not exist, or could not be auto-loaded.
<?php
...
use FOS\RestBundle\Controller\Annotations\View;
...
/**
* Returns all content
*
* [GET] /{_locale}/content
* @View()
*
* @param Request $request
*
* @param \Symfony\Component\HttpFoundation\Request $request
* @return View
*/
public function indexAction(Request $request)
{
....
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment