File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
app/code/Magento/PageBuilder
Model/Config/ContentType/AdditionalData/Provider/Uploader Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,15 @@ class OpenDialogUrl implements ProviderInterface
21
21
/**
22
22
* @var FlagManager
23
23
*/
24
- private $ scopeConfig ;
24
+ private $ flagManager ;
25
25
26
26
/**
27
- * @param Url $urlBuilder
27
+ * @param FlagManager $flagManager
28
28
*/
29
29
public function __construct (
30
- FlagManager $ scopeConfig
30
+ FlagManager $ flagManager
31
31
) {
32
- $ this ->scopeConfig = $ scopeConfig ;
32
+ $ this ->flagManager = $ flagManager ;
33
33
}
34
34
35
35
/**
@@ -38,7 +38,7 @@ public function __construct(
38
38
public function getData (string $ itemName ) : array
39
39
{
40
40
return [
41
- $ itemName => $ this ->scopeConfig ->getFlagData (self ::MEDIA_GALLERY_OPEN_URL )
41
+ $ itemName => $ this ->flagManager ->getFlagData (self ::MEDIA_GALLERY_OPEN_URL )
42
42
];
43
43
}
44
44
}
Original file line number Diff line number Diff line change @@ -20,14 +20,14 @@ class SetOpenDialogUrl
20
20
/**
21
21
* @var FlagManager
22
22
*/
23
- private $ config ;
23
+ private $ flagManager ;
24
24
25
25
/**
26
- * @param FlagManager $config
26
+ * @param FlagManager $flagManager
27
27
*/
28
- public function __construct (FlagManager $ config )
28
+ public function __construct (FlagManager $ flagManager )
29
29
{
30
- $ this ->config = $ config ;
30
+ $ this ->flagManager = $ flagManager ;
31
31
}
32
32
33
33
/**
@@ -39,6 +39,6 @@ public function afterPrepare(Image $component): void
39
39
{
40
40
$ data = $ component ->getData ();
41
41
42
- $ this ->config ->saveFlag (self ::MEDIA_GALLERY_OPEN_URL , $ data ['config ' ]['mediaGallery ' ]['openDialogUrl ' ]);
42
+ $ this ->flagManager ->saveFlag (self ::MEDIA_GALLERY_OPEN_URL , $ data ['config ' ]['mediaGallery ' ]['openDialogUrl ' ]);
43
43
}
44
44
}
You can’t perform that action at this time.
0 commit comments