File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed
app/code/Magento/Reports/Setup/Patch/Data Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+ declare (strict_types=1 );
7
+
8
+ namespace Magento \Reports \Setup \Patch \Data ;
9
+
10
+ use Magento \Framework \Notification \NotifierInterface ;
11
+
12
+ class ReportDisableNotification implements \Magento \Framework \Setup \Patch \DataPatchInterface
13
+ {
14
+ /**
15
+ * @var NotifierInterface
16
+ */
17
+ private $ notifier ;
18
+
19
+ /**
20
+ * @param NotifierInterface $notifier
21
+ */
22
+ public function __construct (
23
+ NotifierInterface $ notifier
24
+ ) {
25
+ $ this ->notifier = $ notifier ;
26
+ }
27
+
28
+ /**
29
+ * @inheritdoc
30
+ */
31
+ public function apply ()
32
+ {
33
+ $ message = <<<"MESSAGE"
34
+ Statistics collection for Magento Reports is now disabled by default in the interest of improving performance.
35
+ Please turn Magento Reports back in System Config.
36
+ MESSAGE ;
37
+ $ this ->notifier ->addNotice (__ ('Disable Notice ' ), __ ($ message ));
38
+ }
39
+
40
+ /**
41
+ * @inheritdoc
42
+ */
43
+ public function getAliases ()
44
+ {
45
+ return [];
46
+ }
47
+
48
+ /**
49
+ * @inheritdoc
50
+ */
51
+ public static function getDependencies ()
52
+ {
53
+ return [];
54
+ }
55
+ }
You can’t perform that action at this time.
0 commit comments