It's all connected

Somehow

The Annotation Template in Method SomeClass\SomeBundle\Controller\RestController::addAction() Was Never Imported.

When you get this error it is because you need to import the annotation classes into the file you are using them in.

For @Route and @Template this is:

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;

Comments