@@ -36,7 +36,7 @@ public function __construct(
36
36
\Magento \Framework \Webapi \Rest \Request $ request ,
37
37
\Magento \Framework \Filesystem \Driver \File $ driver ,
38
38
\Magento \Catalog \Model \ResourceModel \Product \CollectionFactory $ productFactory ,
39
- \Vuefront \Vuefront \Model \ResourceModel \Apps \Collection $ appsFactory ,
39
+ // \Vuefront\Vuefront\Model\ResourceModel\Apps\Collection $appsFactory,
40
40
\Vuefront \Vuefront \Model \Api \System \Startup $ startup ,
41
41
\Magento \Store \Model \StoreManagerInterface $ storeManager ,
42
42
\Magento \Framework \Module \Manager $ moduleManager ,
@@ -47,7 +47,8 @@ public function __construct(
47
47
\Zend \Uri \Http $ zendHttp ,
48
48
\Zend \Validator \File \Exists $ zendFileExists ,
49
49
\Magento \Framework \Filesystem \Io \File $ file ,
50
- \Magento \Framework \Archive \Tar $ arhiveTar
50
+ \Magento \Framework \Archive \Tar $ arhiveTar ,
51
+ \Vuefront \Vuefront \Model \AppsFactory $ appsFactory
51
52
) {
52
53
$ this ->scopeConfig = $ scopeConfig ;
53
54
$ this ->context = $ context ;
@@ -338,8 +339,13 @@ public function vfUpdate()
338
339
}
339
340
340
341
public function vfApps () {
341
- $ result = $ this ->appsFactory ->addFieldToSelect ('* ' )->load ();
342
- var_dump ($ result );
342
+ $ apps = $ this ->appsFactory ->create ();
343
+ $ collection = $ apps ->getCollection ();
344
+
345
+ foreach ($ collection as $ key => $ value ) {
346
+ var_dump ($ value ->getData ());
347
+ }
348
+
343
349
return [];
344
350
}
345
351
0 commit comments