File tree Expand file tree Collapse file tree 5 files changed +6
-11
lines changed Expand file tree Collapse file tree 5 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 14
14
use Magento \Framework \Message \ManagerInterface as MessageManager ;
15
15
use Magento \Theme \CustomerData \MessagesProviderInterface ;
16
16
17
- class MessageProvider implements MessagesProviderInterface
17
+ class MessagesProvider implements MessagesProviderInterface
18
18
{
19
19
/**
20
20
*
@@ -61,12 +61,7 @@ public function getMessages(): Collection
61
61
$ clearSessionMessages = true ;
62
62
63
63
if ((bool ) $ this ->appConfig ->getValue (Synchronizer::ALLOW_SYNC_WITH_BACKEND_PATH )) {
64
-
65
- $ forceNewSectionTimestamp = $ this ->request ->getParam ('force_new_section_timestamp ' ) ?? null ;
66
-
67
- if ('true ' !== $ forceNewSectionTimestamp ) {
68
- $ clearSessionMessages = false ;
69
- }
64
+ $ clearSessionMessages = $ this ->request ->getParam ('force_new_section_timestamp ' ) === 'true ' ;
70
65
}
71
66
72
67
return $ this ->messageManager ->getMessages ($ clearSessionMessages );
Original file line number Diff line number Diff line change 76
76
<preference for =" Magento\Catalog\Api\Data\MassActionInterface" type =" Magento\Catalog\Model\MassAction" />
77
77
<preference for =" Magento\Catalog\Model\ProductLink\Data\ListCriteriaInterface" type =" Magento\Catalog\Model\ProductLink\Data\ListCriteria" />
78
78
<preference for =" Magento\Catalog\Api\CategoryListDeleteBySkuInterface" type =" Magento\Catalog\Model\CategoryLinkRepository" />
79
- <preference for =" Magento\Theme\CustomerData\MessagesProviderInterface" type =" Magento\Catalog\Model\Theme\CustomerData\MessageProvider " />
79
+ <preference for =" Magento\Theme\CustomerData\MessagesProviderInterface" type =" Magento\Catalog\Model\Theme\CustomerData\MessagesProvider " />
80
80
<type name =" Magento\Customer\Model\ResourceModel\Visitor" >
81
81
<plugin name =" catalogLog" type =" Magento\Catalog\Model\Plugin\Log" />
82
82
</type >
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class Messages implements SectionSourceInterface
39
39
*
40
40
* @param MessageManager $messageManager
41
41
* @param InterpretationStrategyInterface $interpretationStrategy
42
- * @param MessagesProviderInterface $messageProvider
42
+ * @param MessagesProviderInterface|null $messageProvider
43
43
*/
44
44
public function __construct (
45
45
MessageManager $ messageManager ,
Original file line number Diff line number Diff line change 10
10
use Magento \Framework \Message \Collection ;
11
11
use Magento \Framework \Message \ManagerInterface as MessageManager ;
12
12
13
- class MessageProvider implements MessagesProviderInterface
13
+ class MessagesProvider implements MessagesProviderInterface
14
14
{
15
15
/**
16
16
* Manager messages
Original file line number Diff line number Diff line change 19
19
<preference for =" Magento\Framework\View\Model\PageLayout\Config\BuilderInterface" type =" Magento\Theme\Model\PageLayout\Config\Builder" />
20
20
<preference for =" Magento\Theme\Model\Design\Config\MetadataProviderInterface" type =" Magento\Theme\Model\Design\Config\MetadataProvider" />
21
21
<preference for =" Magento\Theme\Model\Theme\StoreThemesResolverInterface" type =" Magento\Theme\Model\Theme\StoreThemesResolver" />
22
- <preference for =" Magento\Theme\CustomerData\MessagesProviderInterface" type =" Magento\Theme\CustomerData\MessageProvider " />
22
+ <preference for =" Magento\Theme\CustomerData\MessagesProviderInterface" type =" Magento\Theme\CustomerData\MessagesProvider " />
23
23
<type name =" Magento\Theme\Model\Config" >
24
24
<arguments >
25
25
<argument name =" configCache" xsi : type =" object" >Magento\Framework\App\Cache\Type\Config</argument >
You can’t perform that action at this time.
0 commit comments