Skip to content

Commit ef79818

Browse files
committed
Correct Names
1 parent 62a0b19 commit ef79818

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

app/code/Magento/PageBuilder/Model/Config/ContentType/AdditionalData/Provider/Uploader/OpenDialogUrl.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ class OpenDialogUrl implements ProviderInterface
2121
/**
2222
* @var FlagManager
2323
*/
24-
private $scopeConfig;
24+
private $flagManager;
2525

2626
/**
27-
* @param Url $urlBuilder
27+
* @param FlagManager $flagManager
2828
*/
2929
public function __construct(
30-
FlagManager $scopeConfig
30+
FlagManager $flagManager
3131
) {
32-
$this->scopeConfig = $scopeConfig;
32+
$this->flagManager = $flagManager;
3333
}
3434

3535
/**
@@ -38,7 +38,7 @@ public function __construct(
3838
public function getData(string $itemName) : array
3939
{
4040
return [
41-
$itemName => $this->scopeConfig->getFlagData(self::MEDIA_GALLERY_OPEN_URL)
41+
$itemName => $this->flagManager->getFlagData(self::MEDIA_GALLERY_OPEN_URL)
4242
];
4343
}
4444
}

app/code/Magento/PageBuilder/Plugin/SetOpenDialogUrl.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ class SetOpenDialogUrl
2020
/**
2121
* @var FlagManager
2222
*/
23-
private $config;
23+
private $flagManager;
2424

2525
/**
26-
* @param FlagManager $config
26+
* @param FlagManager $flagManager
2727
*/
28-
public function __construct(FlagManager $config)
28+
public function __construct(FlagManager $flagManager)
2929
{
30-
$this->config = $config;
30+
$this->flagManager = $flagManager;
3131
}
3232

3333
/**
@@ -39,6 +39,6 @@ public function afterPrepare(Image $component): void
3939
{
4040
$data = $component->getData();
4141

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']);
4343
}
4444
}

0 commit comments

Comments
 (0)