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 7
7
namespace Magento \ReleaseNotification \Controller \Adminhtml \Notification ;
8
8
9
9
use Magento \Backend \App \Action ;
10
+ use Magento \Framework \App \Action \HttpPostActionInterface ;
10
11
use Magento \Framework \Exception \LocalizedException ;
11
12
use Magento \Framework \Controller \ResultFactory ;
12
13
use Magento \ReleaseNotification \Model \ResourceModel \Viewer \Logger as NotificationLogger ;
13
14
use Magento \Framework \App \ProductMetadataInterface ;
14
15
use Psr \Log \LoggerInterface ;
15
16
16
17
/**
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
18
21
*/
19
- class MarkUserNotified extends Action
22
+ class MarkUserNotified extends Action implements HttpPostActionInterface
20
23
{
21
24
/**
22
25
* @var ProductMetadataInterface
@@ -84,12 +87,4 @@ public function execute()
84
87
$ resultJson = $ this ->resultFactory ->create (ResultFactory::TYPE_JSON );
85
88
return $ resultJson ->setData ($ responseContent );
86
89
}
87
-
88
- /**
89
- * @return bool
90
- */
91
- protected function _isAllowed ()
92
- {
93
- return parent ::_isAllowed ();
94
- }
95
90
}
Original file line number Diff line number Diff line change 15
15
* Dynamic validator for UI release notification, manage UI component visibility.
16
16
* Return true if the logged in user has not seen the notification.
17
17
* @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
18
22
*/
19
23
class CanViewNotification implements VisibilityConditionInterface
20
24
{
Original file line number Diff line number Diff line change 13
13
14
14
/**
15
15
* 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
16
20
*/
17
21
class HttpContentProvider implements ContentProviderInterface
18
22
{
Original file line number Diff line number Diff line change 9
9
10
10
/**
11
11
* 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
12
16
*/
13
17
class UrlBuilder
14
18
{
Original file line number Diff line number Diff line change 9
9
/**
10
10
* Requests the release notification content data from a defined service
11
11
* @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
12
15
*/
13
16
interface ContentProviderInterface
14
17
{
Original file line number Diff line number Diff line change 15
15
* Release notification viewer log data logger.
16
16
*
17
17
* 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
18
22
*/
19
23
class Logger
20
24
{
21
25
/**
22
- * Log table name
26
+ * Release notification log table name
23
27
*/
24
- const LOG_TABLE_NAME = 'release_notification_viewer_log ' ;
28
+ public const LOG_TABLE_NAME = 'release_notification_viewer_log ' ;
25
29
26
30
/**
27
31
* @var Resource
Original file line number Diff line number Diff line change 9
9
10
10
/**
11
11
* 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
12
16
*/
13
17
class Log extends DataObject
14
18
{
Original file line number Diff line number Diff line change 20
20
* Modifies the metadata returning to the Release Notification data provider
21
21
*
22
22
* @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
23
26
*/
24
27
class Notifications implements ModifierInterface
25
28
{
Original file line number Diff line number Diff line change 14
14
15
15
/**
16
16
* 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
17
21
*/
18
22
class NotificationDataProvider implements DataProviderInterface
19
23
{
@@ -177,20 +181,25 @@ public function getRequestFieldName()
177
181
178
182
/**
179
183
* @inheritdoc
184
+ * phpcs:disable Magento2.CodeAnalysis.EmptyBlock
180
185
*/
181
186
public function addFilter (\Magento \Framework \Api \Filter $ filter )
182
187
{
188
+ // phpcs:ignore Squiz.PHP.NonExecutableCode.ReturnNotRequired
189
+ return ;
183
190
}
184
191
185
192
/**
186
193
* @inheritdoc
194
+ * phpcs:disable Magento2.CodeAnalysis.EmptyBlock
187
195
*/
188
196
public function addOrder ($ field , $ direction )
189
197
{
190
198
}
191
199
192
200
/**
193
201
* @inheritdoc
202
+ * phpcs:disable Magento2.CodeAnalysis.EmptyBlock
194
203
*/
195
204
public function setLimit ($ offset , $ size )
196
205
{
Original file line number Diff line number Diff line change 10
10
11
11
/**
12
12
* 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
13
17
*/
14
18
class NotificationRenderer
15
19
{
Original file line number Diff line number Diff line change 9
9
<default >
10
10
<system >
11
11
<release_notification >
12
- <content_url >magento.com/release_notifications</ content_url >
12
+ <content_url / >
13
13
<use_https >1</use_https >
14
14
</release_notification >
15
15
</system >
You can’t perform that action at this time.
0 commit comments