forked from wallabag/wallabag
Use FQCN as service name for repositories
This commit is contained in:
@ -15,6 +15,7 @@ use Symfony\Component\Routing\Annotation\Route;
|
||||
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
|
||||
use Wallabag\CoreBundle\Entity\Tag;
|
||||
use Wallabag\CoreBundle\Helper\PreparePagerForEntries;
|
||||
use Wallabag\CoreBundle\Repository\EntryRepository;
|
||||
use Wallabag\UserBundle\Entity\User;
|
||||
|
||||
class FeedController extends Controller
|
||||
@ -114,7 +115,7 @@ class FeedController extends Controller
|
||||
UrlGeneratorInterface::ABSOLUTE_URL
|
||||
);
|
||||
|
||||
$entriesByTag = $this->get('wallabag_core.entry_repository')->findAllByTagId(
|
||||
$entriesByTag = $this->get(EntryRepository::class)->findAllByTagId(
|
||||
$user->getId(),
|
||||
$tag->getId(),
|
||||
$sorts[$sort]
|
||||
@ -185,7 +186,7 @@ class FeedController extends Controller
|
||||
*/
|
||||
private function showEntries($type, User $user, $page = 1)
|
||||
{
|
||||
$repository = $this->get('wallabag_core.entry_repository');
|
||||
$repository = $this->get(EntryRepository::class);
|
||||
|
||||
switch ($type) {
|
||||
case 'starred':
|
||||
|
||||
Reference in New Issue
Block a user