14
14
use Magento \Framework \Exception \NoSuchEntityException ;
15
15
use Magento \PageBuilder \Model \State as PageBuilderState ;
16
16
use Magento \PageBuilder \Model \Stage \Config as Config ;
17
- use Psr \Log \LoggerInterface ;
18
17
19
18
/**
20
19
* Updates wysiwyg element with Page Builder specific config
23
22
*/
24
23
class Wysiwyg extends \Magento \Ui \Component \Form \Element \Wysiwyg
25
24
{
26
- /**
27
- * @var LoggerInterface
28
- */
29
- private $ logger ;
30
-
31
25
/**
32
26
* Wysiwyg constructor.
33
27
*
34
- * @param LoggerInterface $logger
35
28
* @param ContextInterface $context
36
29
* @param FormFactory $formFactory
37
30
* @param ConfigInterface $wysiwygConfig
@@ -43,7 +36,6 @@ class Wysiwyg extends \Magento\Ui\Component\Form\Element\Wysiwyg
43
36
* @param array $config
44
37
*/
45
38
public function __construct (
46
- LoggerInterface $ logger ,
47
39
ContextInterface $ context ,
48
40
FormFactory $ formFactory ,
49
41
ConfigInterface $ wysiwygConfig ,
@@ -63,9 +55,7 @@ public function __construct(
63
55
$ config ['wysiwyg ' ] = (bool )$ attribute ->getIsWysiwygEnabled ();
64
56
}
65
57
} catch (NoSuchEntityException $ e ) {
66
- $ logger ->warning (
67
- __ ('This model is used by non product attributes: %1 ' , $ e ->getMessage ())
68
- );
58
+ // This model is used by non product attributes
69
59
}
70
60
}
71
61
$ isEnablePageBuilder = isset ($ wysiwygConfigData ['is_pagebuilder_enabled ' ])
@@ -88,6 +78,5 @@ public function __construct(
88
78
}
89
79
90
80
parent ::__construct ($ context , $ formFactory , $ wysiwygConfig , $ components , $ data , $ config );
91
- $ this ->logger = $ logger ;
92
81
}
93
82
}
0 commit comments