File tree Expand file tree Collapse file tree 4 files changed +6
-12
lines changed
Plugin/Controller/System/Config
Config/Controller/Adminhtml/System Expand file tree Collapse file tree 4 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public function saveConfigData(array $configData)
75
75
}
76
76
77
77
/**
78
- * Change Placeholder Data path if exists
78
+ * Save Images to temporary Path
79
79
*
80
80
* @param array $configData
81
81
* @return void
Original file line number Diff line number Diff line change 8
8
namespace Magento \AsyncConfig \Plugin \Controller \System \Config ;
9
9
10
10
use Magento \AsyncConfig \Api \AsyncConfigPublisherInterface ;
11
+ use Magento \AsyncConfig \Setup \ConfigOptionsList ;
11
12
use Magento \Config \Controller \Adminhtml \System \Config \Save ;
12
13
use Magento \Framework \App \DeploymentConfig ;
13
14
use Magento \Framework \App \ObjectManager ;
@@ -39,11 +40,6 @@ class SaveAsyncConfigPlugin
39
40
*/
40
41
private $ messageManager ;
41
42
42
- /**
43
- * @var const
44
- */
45
- public const ASYNC_CONFIG_OPTION_PATH = 'config/async ' ;
46
-
47
43
/**
48
44
*
49
45
* @param DeploymentConfig|null $deploymentConfig
@@ -77,12 +73,12 @@ public function __construct(
77
73
*/
78
74
public function aroundExecute (Save $ subject , callable $ proceed )
79
75
{
80
- if (!$ this ->deploymentConfig ->get (self :: ASYNC_CONFIG_OPTION_PATH )) {
76
+ if (!$ this ->deploymentConfig ->get (ConfigOptionsList:: CONFIG_PATH_ASYNC_CONFIG_SAVE )) {
81
77
return $ proceed ();
82
78
} else {
83
79
$ configData = $ subject ->getConfigData ();
84
80
$ this ->asyncConfigPublisher ->saveConfigData ($ configData );
85
- $ this ->messageManager ->addSuccess (__ ('Configuration changes will be applied by consumer soon. ' ));
81
+ $ this ->messageManager ->addSuccessMessage (__ ('Configuration changes will be applied by consumer soon. ' ));
86
82
$ subject ->_saveState ($ subject ->getRequest ()->getPost ('config_state ' ));
87
83
/** @var \Magento\Backend\Model\View\Result\Redirect $resultRedirect */
88
84
$ resultRedirect = $ this ->resultRedirectFactory ->create ();
Original file line number Diff line number Diff line change @@ -23,17 +23,15 @@ abstract class AbstractConfig extends \Magento\Backend\App\AbstractAction
23
23
*
24
24
* @see _isAllowed()
25
25
*/
26
- public const ADMIN_RESOURCE = 'Magento_Config::config ' ;
26
+ const ADMIN_RESOURCE = 'Magento_Config::config ' ;
27
27
28
28
/**
29
29
* @var \Magento\Config\Model\Config\Structure
30
30
*/
31
31
protected $ _configStructure ;
32
32
33
33
/**
34
- * @var mixed
35
34
* @deprecated 101.0.0
36
- * @see Nothing
37
35
*/
38
36
protected $ _sectionChecker ;
39
37
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public function __construct(
59
59
60
60
/**
61
61
* phpcs:disable Generic.CodeAnalysis.UselessOverridingMethod
62
- * @inheritDoc
62
+ * {@inheritdoc}
63
63
*/
64
64
public function _saveState ($ configState = []): bool
65
65
{
You can’t perform that action at this time.
0 commit comments