Created
December 19, 2012 14:34
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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