Fix third argument to Route

This commit is contained in:
Jeremy Benoist 2018-10-24 20:29:33 +02:00
parent 019e1acc49
commit 8010425444
No known key found for this signature in database
GPG Key ID: BCA73962457ACC3C
2 changed files with 2 additions and 4 deletions

View File

@ -10,7 +10,6 @@ use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\HttpKernel\Exception\HttpException;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Wallabag\CoreBundle\Entity\Entry; use Wallabag\CoreBundle\Entity\Entry;
use Wallabag\CoreBundle\Entity\Tag; use Wallabag\CoreBundle\Entity\Tag;
use Wallabag\CoreBundle\Event\EntryDeletedEvent; use Wallabag\CoreBundle\Event\EntryDeletedEvent;
@ -140,7 +139,7 @@ class EntryRestController extends WallabagRestController
'tags' => $tags, 'tags' => $tags,
'since' => $since, 'since' => $since,
], ],
UrlGeneratorInterface::ABSOLUTE_URL true
) )
); );

View File

@ -9,7 +9,6 @@ use Pagerfanta\Adapter\DoctrineORMAdapter;
use Pagerfanta\Pagerfanta; use Pagerfanta\Pagerfanta;
use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
class SearchRestController extends WallabagRestController class SearchRestController extends WallabagRestController
{ {
@ -57,7 +56,7 @@ class SearchRestController extends WallabagRestController
'page' => $page, 'page' => $page,
'perPage' => $perPage, 'perPage' => $perPage,
], ],
UrlGeneratorInterface::ABSOLUTE_URL true
) )
); );