File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
app/code/Magento/Downloadable/Setup/Patch/Data Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 7
7
8
8
namespace Magento \Downloadable \Setup \Patch \Data ;
9
9
10
+ use Magento \Config \Model \Config \Backend \Admin \Custom ;
10
11
use Magento \Framework \App \Config \ScopeConfigInterface ;
11
12
use Magento \Framework \Setup \Patch \DataPatchInterface ;
12
13
use Magento \Framework \UrlInterface ;
@@ -81,7 +82,11 @@ public function __construct(
81
82
*/
82
83
public function apply ()
83
84
{
84
- foreach ($ this ->scopeResolver ->getScopes () as $ scope ) {
85
+ $ customStoreScope = $ this ->scopeResolver ->getScope (Custom::CONFIG_SCOPE_ID );
86
+ $ storeScopes = $ this ->scopeResolver ->getScopes ();
87
+ $ allStoreScopes = array_merge ($ storeScopes , [$ customStoreScope ]);
88
+
89
+ foreach ($ allStoreScopes as $ scope ) {
85
90
/** @var $scope Store */
86
91
$ this ->addHost ($ scope ->getBaseUrl (UrlInterface::URL_TYPE_WEB , false ));
87
92
$ this ->addHost ($ scope ->getBaseUrl (UrlInterface::URL_TYPE_WEB , true ));
You can’t perform that action at this time.
0 commit comments