composer update knplabs/knp-paginator-bundle (v2.6.0 => v2.8.0). KNP Paginator deprecations removed.

This commit is contained in:
Alexey Skobkin 2019-01-19 02:20:58 +03:00
parent 75b6f0a19d
commit f63b70fdd3
4 changed files with 19 additions and 19 deletions

26
composer.lock generated
View File

@ -1757,32 +1757,32 @@
}, },
{ {
"name": "knplabs/knp-paginator-bundle", "name": "knplabs/knp-paginator-bundle",
"version": "v2.6.0", "version": "v2.8.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/KnpLabs/KnpPaginatorBundle.git", "url": "https://github.com/KnpLabs/KnpPaginatorBundle.git",
"reference": "293abb6a2f1ae53ace5796d0ef3e5ae1b8f92371" "reference": "f4ece5b347121b9fe13166264f197f90252d4bd2"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/KnpLabs/KnpPaginatorBundle/zipball/293abb6a2f1ae53ace5796d0ef3e5ae1b8f92371", "url": "https://api.github.com/repos/KnpLabs/KnpPaginatorBundle/zipball/f4ece5b347121b9fe13166264f197f90252d4bd2",
"reference": "293abb6a2f1ae53ace5796d0ef3e5ae1b8f92371", "reference": "f4ece5b347121b9fe13166264f197f90252d4bd2",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"knplabs/knp-components": "~1.2", "knplabs/knp-components": "~1.2",
"php": ">=5.3.3", "php": ">=5.3.3",
"symfony/framework-bundle": "~2.7|~3.0", "symfony/framework-bundle": "~2.7|~3.0|~4.0",
"twig/twig": "~1.12|~2" "twig/twig": "~1.12|~2"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "~4.8", "phpunit/phpunit": "~4.8.35|~5.4.3|~6.4",
"symfony/expression-language": "~2.7|~3.0" "symfony/expression-language": "~2.7|~3.0|~4.0"
}, },
"type": "symfony-bundle", "type": "symfony-bundle",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "2.5.x-dev" "dev-master": "2.8.x-dev"
} }
}, },
"autoload": { "autoload": {
@ -1800,22 +1800,22 @@
"homepage": "http://knplabs.com" "homepage": "http://knplabs.com"
}, },
{ {
"name": "Symfony2 Community", "name": "Symfony Community",
"homepage": "http://github.com/KnpLabs/KnpPaginatorBundle/contributors" "homepage": "http://github.com/KnpLabs/KnpPaginatorBundle/contributors"
} }
], ],
"description": "Paginator bundle for Symfony2 to automate pagination and simplify sorting and other features", "description": "Paginator bundle for Symfony to automate pagination and simplify sorting and other features",
"homepage": "http://github.com/KnpLabs/KnpPaginatorBundle", "homepage": "http://github.com/KnpLabs/KnpPaginatorBundle",
"keywords": [ "keywords": [
"Symfony2",
"bundle", "bundle",
"knp", "knp",
"knplabs", "knplabs",
"pager", "pager",
"pagination", "pagination",
"paginator" "paginator",
"symfony"
], ],
"time": "2017-06-09T15:25:39+00:00" "time": "2018-05-16T12:15:58+00:00"
}, },
{ {
"name": "michelf/php-markdown", "name": "michelf/php-markdown",

View File

@ -2,14 +2,14 @@
namespace Skobkin\Bundle\PointToolsBundle\Controller; namespace Skobkin\Bundle\PointToolsBundle\Controller;
use Knp\Component\Pager\Paginator; use Knp\Component\Pager\PaginatorInterface;
use Skobkin\Bundle\PointToolsBundle\Repository\SubscriptionEventRepository; use Skobkin\Bundle\PointToolsBundle\Repository\SubscriptionEventRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\{Request, Response}; use Symfony\Component\HttpFoundation\{Request, Response};
class EventsController extends AbstractController class EventsController extends AbstractController
{ {
public function lastAction(Request $request, SubscriptionEventRepository $eventRepository, Paginator $paginator): Response public function lastAction(Request $request, SubscriptionEventRepository $eventRepository, PaginatorInterface $paginator): Response
{ {
$eventsPagination = $paginator->paginate( $eventsPagination = $paginator->paginate(
$eventRepository->createLastSubscriptionEventsQuery(), $eventRepository->createLastSubscriptionEventsQuery(),

View File

@ -2,7 +2,7 @@
namespace Skobkin\Bundle\PointToolsBundle\Controller; namespace Skobkin\Bundle\PointToolsBundle\Controller;
use Knp\Component\Pager\Paginator; use Knp\Component\Pager\PaginatorInterface;
use Skobkin\Bundle\PointToolsBundle\Repository\Blogs\PostRepository; use Skobkin\Bundle\PointToolsBundle\Repository\Blogs\PostRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
@ -11,7 +11,7 @@ class PublicFeedController extends AbstractController
{ {
private const POSTS_PER_PAGE = 20; private const POSTS_PER_PAGE = 20;
public function indexAction(Request $request, PostRepository $postRepository, Paginator $paginator) public function indexAction(Request $request, PostRepository $postRepository, PaginatorInterface $paginator)
{ {
$postsPagination = $paginator->paginate( $postsPagination = $paginator->paginate(
$postRepository->createPublicFeedPostsQuery(), $postRepository->createPublicFeedPostsQuery(),

View File

@ -2,7 +2,7 @@
namespace Skobkin\Bundle\PointToolsBundle\Controller; namespace Skobkin\Bundle\PointToolsBundle\Controller;
use Knp\Component\Pager\Paginator; use Knp\Component\Pager\PaginatorInterface;
use Skobkin\Bundle\PointToolsBundle\DTO\{DailyEvents, TopUserDTO}; use Skobkin\Bundle\PointToolsBundle\DTO\{DailyEvents, TopUserDTO};
use Skobkin\Bundle\PointToolsBundle\Entity\User; use Skobkin\Bundle\PointToolsBundle\Entity\User;
use Skobkin\Bundle\PointToolsBundle\Repository\{SubscriptionEventRepository, UserRenameEventRepository, UserRepository}; use Skobkin\Bundle\PointToolsBundle\Repository\{SubscriptionEventRepository, UserRenameEventRepository, UserRepository};
@ -30,7 +30,7 @@ class UserController extends AbstractController
SubscriptionEventRepository $subscriptionEventRepository, SubscriptionEventRepository $subscriptionEventRepository,
UserRepository $userRepository, UserRepository $userRepository,
UserRenameEventRepository $renameEventRepository, UserRenameEventRepository $renameEventRepository,
Paginator $paginator PaginatorInterface $paginator
): Response { ): Response {
/** @var User $user */ /** @var User $user */
$user = $userRepository->findUserByLogin($login); $user = $userRepository->findUserByLogin($login);