]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fix third argument to Route 3627/head
authorJeremy Benoist <jeremy.benoist@gmail.com>
Wed, 24 Oct 2018 18:29:33 +0000 (20:29 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Tue, 22 Jan 2019 19:42:25 +0000 (20:42 +0100)
src/Wallabag/ApiBundle/Controller/EntryRestController.php
src/Wallabag/ApiBundle/Controller/SearchRestController.php

index a79e852cb0d833a3d00f522a0c037592ebb356c5..16d8a40b4e7c8f04ee9a8e2ece7576fcf0e0f526 100644 (file)
@@ -10,7 +10,6 @@ use Symfony\Component\HttpFoundation\Request;
 use Symfony\Component\HttpFoundation\Response;
 use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
 use Symfony\Component\HttpKernel\Exception\HttpException;
-use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
 use Wallabag\CoreBundle\Entity\Entry;
 use Wallabag\CoreBundle\Entity\Tag;
 use Wallabag\CoreBundle\Event\EntryDeletedEvent;
@@ -140,7 +139,7 @@ class EntryRestController extends WallabagRestController
                     'tags' => $tags,
                     'since' => $since,
                 ],
-                UrlGeneratorInterface::ABSOLUTE_URL
+                true
             )
         );
 
index f8da0ad4a28a179512199a5bd8d5183d84266b88..d9f99844c6a043c8210f873d6651c3067997d869 100644 (file)
@@ -9,7 +9,6 @@ use Pagerfanta\Adapter\DoctrineORMAdapter;
 use Pagerfanta\Pagerfanta;
 use Symfony\Component\HttpFoundation\JsonResponse;
 use Symfony\Component\HttpFoundation\Request;
-use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
 
 class SearchRestController extends WallabagRestController
 {
@@ -57,7 +56,7 @@ class SearchRestController extends WallabagRestController
                     'page' => $page,
                     'perPage' => $perPage,
                 ],
-                UrlGeneratorInterface::ABSOLUTE_URL
+                true
             )
         );