From f9fc5083132d6bffbb83aaecaf8504c3ff31d5b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Ivan=C4=8Di=C4=87?= Date: Thu, 26 Jul 2018 10:05:32 +0200 Subject: [PATCH] Replace the deprecated LocationSearchFilterAdapter with the new FilterAdapter --- lib/Core/Site/Values/Content.php | 4 ++-- lib/Core/Site/Values/ContentInfo.php | 4 ++-- lib/Core/Site/Values/Location.php | 6 +++--- lib/Core/Site/Values/Node.php | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/Core/Site/Values/Content.php b/lib/Core/Site/Values/Content.php index 4841b386..03f10f86 100644 --- a/lib/Core/Site/Values/Content.php +++ b/lib/Core/Site/Values/Content.php @@ -10,7 +10,7 @@ use eZ\Publish\API\Repository\Values\Content\Query\Criterion\Visibility; use eZ\Publish\API\Repository\Values\Content\Query\SortClause\Location\Path; use Netgen\EzPlatformSiteApi\API\Values\Content as APIContent; -use Netgen\EzPlatformSiteApi\Core\Site\Pagination\Pagerfanta\LocationSearchFilterAdapter; +use Netgen\EzPlatformSiteApi\Core\Site\Pagination\Pagerfanta\FilterAdapter; use Pagerfanta\Adapter\ArrayAdapter; use Pagerfanta\Pagerfanta; @@ -275,7 +275,7 @@ public function getLocations($limit = 25) public function filterLocations($maxPerPage = 25, $currentPage = 1) { $pager = new Pagerfanta( - new LocationSearchFilterAdapter( + new FilterAdapter( new LocationQuery([ 'filter' => new LogicalAnd( [ diff --git a/lib/Core/Site/Values/ContentInfo.php b/lib/Core/Site/Values/ContentInfo.php index 9b538e39..cd6b097a 100644 --- a/lib/Core/Site/Values/ContentInfo.php +++ b/lib/Core/Site/Values/ContentInfo.php @@ -8,7 +8,7 @@ use eZ\Publish\API\Repository\Values\Content\Query\Criterion\Visibility; use eZ\Publish\API\Repository\Values\Content\Query\SortClause\Location\Path; use Netgen\EzPlatformSiteApi\API\Values\ContentInfo as APIContentInfo; -use Netgen\EzPlatformSiteApi\Core\Site\Pagination\Pagerfanta\LocationSearchFilterAdapter; +use Netgen\EzPlatformSiteApi\Core\Site\Pagination\Pagerfanta\FilterAdapter; use Pagerfanta\Pagerfanta; final class ContentInfo extends APIContentInfo @@ -159,7 +159,7 @@ public function getLocations($limit = 25) public function filterLocations($maxPerPage = 25, $currentPage = 1) { $pager = new Pagerfanta( - new LocationSearchFilterAdapter( + new FilterAdapter( new LocationQuery([ 'filter' => new LogicalAnd( [ diff --git a/lib/Core/Site/Values/Location.php b/lib/Core/Site/Values/Location.php index af9587f2..8285a536 100644 --- a/lib/Core/Site/Values/Location.php +++ b/lib/Core/Site/Values/Location.php @@ -14,7 +14,7 @@ use eZ\Publish\API\Repository\Values\Content\Query\Criterion\Visibility; use eZ\Publish\API\Repository\Values\Content\Query\SortClause; use Netgen\EzPlatformSiteApi\API\Values\Location as APILocation; -use Netgen\EzPlatformSiteApi\Core\Site\Pagination\Pagerfanta\LocationSearchFilterAdapter; +use Netgen\EzPlatformSiteApi\Core\Site\Pagination\Pagerfanta\FilterAdapter; use Pagerfanta\Pagerfanta; final class Location extends APILocation @@ -202,7 +202,7 @@ public function filterChildren(array $contentTypeIdentifiers = [], $maxPerPage = } $pager = new Pagerfanta( - new LocationSearchFilterAdapter( + new FilterAdapter( new LocationQuery([ 'filter' => new LogicalAnd($criteria), 'sortClauses' => $this->getSortClauses(), @@ -238,7 +238,7 @@ public function filterSiblings(array $contentTypeIdentifiers = [], $maxPerPage = } $pager = new Pagerfanta( - new LocationSearchFilterAdapter( + new FilterAdapter( new LocationQuery([ 'filter' => new LogicalAnd($criteria), 'sortClauses' => $this->getSortClauses(), diff --git a/lib/Core/Site/Values/Node.php b/lib/Core/Site/Values/Node.php index 588e6019..893d8715 100644 --- a/lib/Core/Site/Values/Node.php +++ b/lib/Core/Site/Values/Node.php @@ -14,7 +14,7 @@ use eZ\Publish\API\Repository\Values\Content\Query\Criterion\Visibility; use eZ\Publish\API\Repository\Values\Content\Query\SortClause; use Netgen\EzPlatformSiteApi\API\Values\Node as APINode; -use Netgen\EzPlatformSiteApi\Core\Site\Pagination\Pagerfanta\LocationSearchFilterAdapter; +use Netgen\EzPlatformSiteApi\Core\Site\Pagination\Pagerfanta\FilterAdapter; use Pagerfanta\Pagerfanta; final class Node extends APINode @@ -149,7 +149,7 @@ public function filterChildren(array $contentTypeIdentifiers = [], $maxPerPage = } $pager = new Pagerfanta( - new LocationSearchFilterAdapter( + new FilterAdapter( new LocationQuery([ 'filter' => new LogicalAnd($criteria), 'sortClauses' => $this->getSortClauses(), @@ -185,7 +185,7 @@ public function filterSiblings(array $contentTypeIdentifiers = [], $maxPerPage = } $pager = new Pagerfanta( - new LocationSearchFilterAdapter( + new FilterAdapter( new LocationQuery([ 'filter' => new LogicalAnd($criteria), 'sortClauses' => $this->getSortClauses(),