File tree Expand file tree Collapse file tree 11 files changed +47
-13
lines changed
app/code/Magento/ReleaseNotification
Controller/Adminhtml/Notification Expand file tree Collapse file tree 11 files changed +47
-13
lines changed Original file line number Diff line number Diff line change 77namespace Magento \ReleaseNotification \Controller \Adminhtml \Notification ;
88
99use Magento \Backend \App \Action ;
10+ use Magento \Framework \App \Action \HttpPostActionInterface ;
1011use Magento \Framework \Exception \LocalizedException ;
1112use Magento \Framework \Controller \ResultFactory ;
1213use Magento \ReleaseNotification \Model \ResourceModel \Viewer \Logger as NotificationLogger ;
1314use Magento \Framework \App \ProductMetadataInterface ;
1415use Psr \Log \LoggerInterface ;
1516
1617/**
17- * Controller to record that the current admin user has seen the release notification content
18+ * @deprecated Starting from Magento OS 2.4.7 Magento_ReleaseNotification module is deprecated
19+ * in favor of another in-product messaging mechanism
20+ * @see Current in-product messaging mechanism
1821 */
19- class MarkUserNotified extends Action
22+ class MarkUserNotified extends Action implements HttpPostActionInterface
2023{
2124 /**
2225 * @var ProductMetadataInterface
@@ -84,12 +87,4 @@ public function execute()
8487 $ resultJson = $ this ->resultFactory ->create (ResultFactory::TYPE_JSON );
8588 return $ resultJson ->setData ($ responseContent );
8689 }
87-
88- /**
89- * @return bool
90- */
91- protected function _isAllowed ()
92- {
93- return parent ::_isAllowed ();
94- }
9590}
Original file line number Diff line number Diff line change 1515 * Dynamic validator for UI release notification, manage UI component visibility.
1616 * Return true if the logged in user has not seen the notification.
1717 * @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
18+ *
19+ * @deprecated Starting from Magento OS 2.4.7 Magento_ReleaseNotification module is deprecated
20+ * in favor of another in-product messaging mechanism
21+ * @see Current in-product messaging mechanism
1822 */
1923class CanViewNotification implements VisibilityConditionInterface
2024{
Original file line number Diff line number Diff line change 1313
1414/**
1515 * Requests the release notification content data via an HTTP call to a REST API
16+ *
17+ * @deprecated Starting from Magento OS 2.4.7 Magento_ReleaseNotification module is deprecated
18+ * in favor of another in-product messaging mechanism
19+ * @see Current in-product messaging mechanism
1620 */
1721class HttpContentProvider implements ContentProviderInterface
1822{
Original file line number Diff line number Diff line change 99
1010/**
1111 * Builder to build Url to retrieve the notification content.
12+ *
13+ * @deprecated Starting from Magento OS 2.4.7 Magento_ReleaseNotification module is deprecated
14+ * in favor of aMagento OS 2.4.7
15+ * @see Current in-product messaging mechanism
1216 */
1317class UrlBuilder
1418{
Original file line number Diff line number Diff line change 99/**
1010 * Requests the release notification content data from a defined service
1111 * @api
12+ * @deprecated Starting from Magento OS 2.4.7 Magento_ReleaseNotification module is deprecated
13+ * in favor of another in-product messaging mechanism
14+ * @see Current in-product messaging mechanism
1215 */
1316interface ContentProviderInterface
1417{
Original file line number Diff line number Diff line change 1515 * Release notification viewer log data logger.
1616 *
1717 * Saves and retrieves release notification viewer log data.
18+ *
19+ * @deprecated Starting from Magento OS 2.4.7 Magento_ReleaseNotification module is deprecated
20+ * in favor of another in-product messaging mechanism
21+ * @see Current in-product messaging mechanism
1822 */
1923class Logger
2024{
2125 /**
22- * Log table name
26+ * Release notification log table name
2327 */
24- const LOG_TABLE_NAME = 'release_notification_viewer_log ' ;
28+ public const LOG_TABLE_NAME = 'release_notification_viewer_log ' ;
2529
2630 /**
2731 * @var Resource
Original file line number Diff line number Diff line change 99
1010/**
1111 * Release notification viewer log resource
12+ *
13+ * @deprecated Starting from Magento OS 2.4.7 Magento_ReleaseNotification module is deprecated
14+ * in favor of another in-product messaging mechanism
15+ * @see Current in-product messaging mechanism
1216 */
1317class Log extends DataObject
1418{
Original file line number Diff line number Diff line change 2020 * Modifies the metadata returning to the Release Notification data provider
2121 *
2222 * @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
23+ * @deprecated Starting from Magento OS 2.4.7 Magento_ReleaseNotification module is deprecated
24+ * in favor of another in-product messaging mechanism
25+ * @see Current in-product messaging mechanism
2326 */
2427class Notifications implements ModifierInterface
2528{
Original file line number Diff line number Diff line change 1414
1515/**
1616 * Data Provider for the Release Notifications UI component.
17+ *
18+ * @deprecated Starting from Magento OS 2.4.7 Magento_ReleaseNotification module is deprecated
19+ * in favor of another in-product messaging mechanism
20+ * @see Current in-product messaging mechanism
1721 */
1822class NotificationDataProvider implements DataProviderInterface
1923{
@@ -177,20 +181,25 @@ public function getRequestFieldName()
177181
178182 /**
179183 * @inheritdoc
184+ * phpcs:disable Magento2.CodeAnalysis.EmptyBlock
180185 */
181186 public function addFilter (\Magento \Framework \Api \Filter $ filter )
182187 {
188+ // phpcs:ignore Squiz.PHP.NonExecutableCode.ReturnNotRequired
189+ return ;
183190 }
184191
185192 /**
186193 * @inheritdoc
194+ * phpcs:disable Magento2.CodeAnalysis.EmptyBlock
187195 */
188196 public function addOrder ($ field , $ direction )
189197 {
190198 }
191199
192200 /**
193201 * @inheritdoc
202+ * phpcs:disable Magento2.CodeAnalysis.EmptyBlock
194203 */
195204 public function setLimit ($ offset , $ size )
196205 {
Original file line number Diff line number Diff line change 1010
1111/**
1212 * Builds the HTML for the release notification modals
13+ *
14+ * @deprecated Starting from Magento OS 2.4.7 Magento_ReleaseNotification module is deprecated
15+ * in favor of another in-product messaging mechanism
16+ * @see Current in-product messaging mechanism
1317 */
1418class NotificationRenderer
1519{
You can’t perform that action at this time.
0 commit comments