7
7
8
8
use Magento \Framework \Controller \Result \Json ;
9
9
use Magento \Framework \Controller \ResultInterface ;
10
- use Magento \Framework \Json \Helper \Data ;
11
- use Magento \Framework \Message \ManagerInterface ;
12
10
use Magento \Framework \Message \MessageInterface ;
13
- use Magento \Framework \Stdlib \Cookie \CookieMetadataFactory ;
14
- use Magento \Framework \Stdlib \CookieManagerInterface ;
15
- use Magento \Framework \View \Element \Message \InterpretationStrategyInterface ;
16
11
17
12
/**
18
13
* Plugin for putting messages to cookies
@@ -25,43 +20,43 @@ class MessagePlugin
25
20
const MESSAGES_COOKIES_NAME = 'mage-messages ' ;
26
21
27
22
/**
28
- * @var CookieManagerInterface
23
+ * @var \Magento\Framework\Stdlib\ CookieManagerInterface
29
24
*/
30
25
private $ cookieManager ;
31
26
32
27
/**
33
- * @var CookieMetadataFactory
28
+ * @var \Magento\Framework\Stdlib\Cookie\ CookieMetadataFactory
34
29
*/
35
30
private $ cookieMetadataFactory ;
36
31
37
32
/**
38
- * @var ManagerInterface
33
+ * @var \Magento\Framework\Message\ ManagerInterface
39
34
*/
40
35
private $ messageManager ;
41
36
42
37
/**
43
- * @var InterpretationStrategyInterface
38
+ * @var \Magento\Framework\View\Element\Message\ InterpretationStrategyInterface
44
39
*/
45
40
private $ interpretationStrategy ;
46
41
47
42
/**
48
- * @var Data
43
+ * @var \Magento\Framework\Json\Helper\ Data
49
44
*/
50
45
private $ jsonHelper ;
51
46
52
47
/**
53
- * @param CookieManagerInterface $cookieManager
54
- * @param CookieMetadataFactory $cookieMetadataFactory
55
- * @param ManagerInterface $messageManager
56
- * @param InterpretationStrategyInterface $interpretationStrategy
57
- * @param Data $jsonHelper
48
+ * @param \Magento\Framework\Stdlib\ CookieManagerInterface $cookieManager
49
+ * @param \Magento\Framework\Stdlib\Cookie\ CookieMetadataFactory $cookieMetadataFactory
50
+ * @param \Magento\Framework\Message\ ManagerInterface $messageManager
51
+ * @param \Magento\Framework\View\Element\Message\ InterpretationStrategyInterface $interpretationStrategy
52
+ * @param \Magento\Framework\Json\Helper\ Data $jsonHelper
58
53
*/
59
54
public function __construct (
60
- CookieManagerInterface $ cookieManager ,
61
- CookieMetadataFactory $ cookieMetadataFactory ,
62
- ManagerInterface $ messageManager ,
63
- InterpretationStrategyInterface $ interpretationStrategy ,
64
- Data $ jsonHelper
55
+ \ Magento \ Framework \ Stdlib \ CookieManagerInterface $ cookieManager ,
56
+ \ Magento \ Framework \ Stdlib \ Cookie \ CookieMetadataFactory $ cookieMetadataFactory ,
57
+ \ Magento \ Framework \ Message \ ManagerInterface $ messageManager ,
58
+ \ Magento \ Framework \ View \ Element \ Message \ InterpretationStrategyInterface $ interpretationStrategy ,
59
+ \ Magento \ Framework \ Json \ Helper \ Data $ jsonHelper
65
60
) {
66
61
$ this ->cookieManager = $ cookieManager ;
67
62
$ this ->cookieMetadataFactory = $ cookieMetadataFactory ;
0 commit comments