File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
10
10
- Bump cross-spawn from 7.0.3 to 7.0.6 ([ #349 ] ( https://github.com/SnowdogApps/magento2-menu/pull/349 ) )
11
11
- Add missing $escaper and $viewModels declarations ([ #350 ] ( https://github.com/SnowdogApps/magento2-menu/pull/350 ) )
12
12
- Import categories by store view ([ #352 ] ( https://github.com/SnowdogApps/magento2-menu/pull/352 ) )
13
+ - Add external vue providers config option
13
14
14
15
## [ 2.27.2] - 2024-11-08
15
16
### Fixed
Original file line number Diff line number Diff line change @@ -13,13 +13,23 @@ class VueProvider
13
13
*/
14
14
private $ components ;
15
15
16
+ /**
17
+ * 3rd party extensions have to provide full path
18
+ *
19
+ * @var array
20
+ */
21
+ private $ externalComponents ;
22
+
16
23
/**
17
24
* @param array $components
25
+ * @param array $externalComponents
18
26
*/
19
27
public function __construct (
20
- array $ components = []
28
+ array $ components = [],
29
+ array $ externalComponents = []
21
30
) {
22
31
$ this ->components = $ components ;
32
+ $ this ->externalComponents = $ externalComponents ;
23
33
}
24
34
25
35
/**
@@ -31,6 +41,9 @@ public function getComponents(): array
31
41
foreach ($ this ->components as $ component ) {
32
42
$ data [] = sprintf (self ::COMPONENT_PATH , $ component );
33
43
}
44
+ foreach ($ this ->externalComponents as $ externalComponent ) {
45
+ $ data [] = $ externalComponent ;
46
+ }
34
47
35
48
return $ data ;
36
49
}
You can’t perform that action at this time.
0 commit comments