Skip to content

Commit 9c9b56e

Browse files
committed
fixup! fixup! IBX-6773: Bookmarks for non-accessible contents cause exception - changed deprecations messages
1 parent 8483861 commit 9c9b56e

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

eZ/Publish/Core/Persistence/Cache/BookmarkHandler.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function (Bookmark $bookmark) {
8585
}
8686

8787
/**
88-
* @deprecated Please use LocationService::find() and Criterion\IsBookmarked instead.
88+
* @deprecated The "BookmarkHandler::loadUserBookmarks()" method is deprecated, will be removed in 5.0.0. Use "LocationService::find()" and "Criterion\IsBookmarked" instead.
8989
*
9090
* {@inheritdoc}
9191
*/
@@ -101,7 +101,7 @@ public function loadUserBookmarks(int $userId, int $offset = 0, int $limit = -1)
101101
}
102102

103103
/**
104-
* @deprecated Please use LocationService::count() and Criterion\IsBookmarked instead.
104+
* @deprecated The "BookmarkHandler::countUserBookmarks()" method is deprecated, will be removed in 5.0.0. Use "LocationService::count()" and "Criterion\IsBookmarked" instead.
105105
*
106106
* {@inheritdoc}
107107
*/

eZ/Publish/Core/Persistence/Legacy/Bookmark/Gateway.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ abstract public function loadBookmarkDataByUserIdAndLocationId(int $userId, arra
4444
/**
4545
* Load data for all bookmarks owned by given $userId.
4646
*
47-
* @deprecated Please use LocationService::find() and Criterion\IsBookmarked instead.
47+
* @deprecated Gateway::loadUserBookmarks()" method is deprecated, will be removed in 5.0.0. Use "LocationService::find()" and "Criterion\IsBookmarked" instead.
4848
*
4949
* @param int $userId ID of user
5050
* @param int $offset Offset to start listing from, 0 by default
@@ -57,7 +57,7 @@ abstract public function loadUserBookmarks(int $userId, int $offset = 0, int $li
5757
/**
5858
* Count bookmarks owned by given $userId.
5959
*
60-
* @deprecated Please use LocationService::count() and Criterion\IsBookmarked instead.
60+
* @deprecated The "Gateway::countUserBookmarks()" method is deprecated, will be removed in 5.0.0. Use "LocationService::count()" and "Criterion\IsBookmarked" instead.
6161
*
6262
* @param int $userId ID of user
6363
*

eZ/Publish/Core/Persistence/Legacy/Bookmark/Gateway/DoctrineDatabase.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function loadBookmarkDataByUserIdAndLocationId(int $userId, array $locati
101101
}
102102

103103
/**
104-
* @deprecated Please use LocationService::find() and Criterion\IsBookmarked instead.
104+
* @deprecated The "DoctrineDatabase::loadUserBookmarks()" method is deprecated, will be removed in 5.0.0. Use "LocationService::find()" and "Criterion\IsBookmarked" instead.
105105
*
106106
* {@inheritdoc}
107107
*/
@@ -125,7 +125,7 @@ public function loadUserBookmarks(int $userId, int $offset = 0, int $limit = -1)
125125
}
126126

127127
/**
128-
* @deprecated Please use LocationService::count() and Criterion\IsBookmarked instead.
128+
* @deprecated The "DoctrineDatabase::countUserBookmarks()" method is deprecated, will be removed in 5.0.0. Use "LocationService::count()" and "Criterion\IsBookmarked" instead.
129129
*
130130
* {@inheritdoc}
131131
*/

eZ/Publish/Core/Persistence/Legacy/Bookmark/Gateway/ExceptionConversion.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function loadBookmarkDataByUserIdAndLocationId(int $userId, array $locati
5757
}
5858

5959
/**
60-
* @deprecated Please use LocationService::find() and Criterion\IsBookmarked instead.
60+
* @deprecated The "ExceptionConversion::loadUserBookmarks()" method is deprecated, will be removed in 5.0.0. Use "LocationService::find()" and "Criterion\IsBookmarked" instead.
6161
*
6262
* @return array
6363
*/
@@ -71,7 +71,7 @@ public function loadUserBookmarks(int $userId, int $offset = 0, int $limit = -1)
7171
}
7272

7373
/**
74-
* @deprecated Please use LocationService::count() and Criterion\IsBookmarked instead.
74+
* @deprecated The "ExceptionConversion::countUserBookmarks()" method is deprecated, will be removed in 5.0.0. Use "LocationService::count()" and "Criterion\IsBookmarked" instead.
7575
*/
7676
public function countUserBookmarks(int $userId): int
7777
{

eZ/Publish/Core/Persistence/Legacy/Bookmark/Handler.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function loadByUserIdAndLocationId(int $userId, array $locationIds): arra
7474
}
7575

7676
/**
77-
* @deprecated Please use LocationService::find() and Criterion\IsBookmarked instead.
77+
* @deprecated The "Handler::loadUserBookmarks()" method is deprecated, will be removed in 5.0.0. Use "LocationService::find()" and "Criterion\IsBookmarked" instead.
7878
*
7979
* {@inheritdoc}
8080
*/
@@ -86,7 +86,7 @@ public function loadUserBookmarks(int $userId, int $offset = 0, int $limit = -1)
8686
}
8787

8888
/**
89-
* @deprecated Please use LocationService::count() and Criterion\IsBookmarked instead.
89+
* @deprecated The "Handler::countUserBookmarks()" method is deprecated, will be removed in 5.0.0. Use "LocationService::count()" and "Criterion\IsBookmarked" instead.
9090
*
9191
* {@inheritdoc}
9292
*/

eZ/Publish/SPI/Persistence/Bookmark/Handler.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function loadByUserIdAndLocationId(int $userId, array $locationIds): arra
4141
/**
4242
* Loads bookmarks owned by user.
4343
*
44-
* @deprecated Please use LocationService::find() and Criterion\IsBookmarked instead.
44+
* @deprecated The "Handler::loadUserBookmarks()" method is deprecated, will be removed in 5.0.0. Use "LocationService::find()" and "Criterion\IsBookmarked" instead.
4545
*
4646
* @param int $userId
4747
* @param int $offset the start offset for paging
@@ -54,7 +54,7 @@ public function loadUserBookmarks(int $userId, int $offset = 0, int $limit = -1)
5454
/**
5555
* Count bookmarks owned by user.
5656
*
57-
* @deprecated Please use LocationService::count() and Criterion\IsBookmarked instead.
57+
* @deprecated The "Handler::countUserBookmarks()" method is deprecated, will be removed in 5.0.0. Use "LocationService::count()" and "Criterion\IsBookmarked" instead.
5858
*
5959
* @param int $userId
6060
*

0 commit comments

Comments
 (0)