use Wallabag\CoreBundle\Entity\Entry;
use Wallabag\CoreBundle\Entity\Tag;
use Wallabag\AnnotationBundle\Entity\Annotation;
+use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
class WallabagRestController extends FOSRestController
{
{
$this->validateAuthentication();
- $response = $this->forward('WallabagApiBundle:WallabagRest:getAnnotations',
- [
- 'entry' => $entry,
- ]);
-
- return $response;
+ return $this->forward('WallabagApiBundle:WallabagRest:getAnnotations', [
+ 'entry' => $entry,
+ ]);
}
/**
{
$this->validateAuthentication();
- $response = $this->forward('WallabagApiBundle:WallabagRest:postAnnotation',
- [
+ return $this->forward('WallabagApiBundle:WallabagRest:postAnnotation', [
'request' => $request,
'entry' => $entry,
]);
-
- return $response;
}
/**
{
$this->validateAuthentication();
- $response = $this->forward('WallabagApiBundle:WallabagRest:putAnnotation',
- [
+ return $this->forward('WallabagApiBundle:WallabagRest:putAnnotation', [
'annotation' => $annotation,
'request' => $request,
]);
-
- return $response;
}
/**
{
$this->validateAuthentication();
- $response = $this->forward('WallabagApiBundle:WallabagRest:deleteAnnotation',
- [
+ return $this->forward('WallabagApiBundle:WallabagRest:deleteAnnotation', [
'annotation' => $annotation,
]);
-
- return $response;
}
/**