File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -174,11 +174,13 @@ private function runIndividualComponents(): void
174
174
$ masterConfig = $ master [$ componentAlias ];
175
175
176
176
// Run that component
177
+ $ areaCode = ($ componentAlias === 'pages ' ) ? Area::AREA_FRONTEND : Area::AREA_ADMINHTML ;
177
178
$ this ->state ->emulateAreaCode (
178
- Area:: AREA_ADMINHTML ,
179
+ $ areaCode ,
179
180
[$ this , 'runComponent ' ],
180
181
[$ componentAlias , $ masterConfig ]
181
182
);
183
+
182
184
}
183
185
} catch (ComponentException $ e ) {
184
186
$ this ->log ->logError ($ e ->getMessage ());
@@ -198,11 +200,13 @@ private function runAllComponents(): void
198
200
// Loop through components and run them individually in the master.yaml order
199
201
foreach ($ master as $ componentAlias => $ componentConfig ) {
200
202
// Run the component in question
203
+ $ areaCode = ($ componentAlias === 'pages ' ) ? Area::AREA_FRONTEND : Area::AREA_ADMINHTML ;
201
204
$ this ->state ->emulateAreaCode (
202
- Area:: AREA_ADMINHTML ,
205
+ $ areaCode ,
203
206
[$ this , 'runComponent ' ],
204
207
[$ componentAlias , $ componentConfig ]
205
208
);
209
+
206
210
}
207
211
} catch (ComponentException $ e ) {
208
212
$ this ->log ->logError ($ e ->getMessage ());
You can’t perform that action at this time.
0 commit comments