Benjamin Roth authored on06/11/2024 20:50:22
Showing3 changed files
... ...
@@ -121,7 +121,7 @@ class ShopwareImportProductsJob extends AbstractController
121 121
 
122 122
                 if (!$this->shopware->addOrUpdateProductBySku($Product->getSku(), $arrData))
123 123
                 {
124
-                    if ($isCli) $io->error('Could not update');
124
+                    if ($isCli) $io->error('Could not update/import Product ' . $Product->getSku());
125 125
                 }
126 126
 
127 127
                 if ($isCli)
... ...
@@ -28,9 +28,10 @@ class Configuration implements ConfigurationInterface
28 28
                     ->children()
29 29
                         ->arrayNode('properties')
30 30
                             ->info('Shopware property mappings')
31
-                            ->defaultValue('')
32
-                            ->arrayPrototype()
33
-                            ->children()
31
+                            ->defaultValue([])
32
+                            ->scalarPrototype()
33
+                                ->cannotBeEmpty()
34
+                            ->end()
34 35
                         ->end()
35 36
                     ->end()
36 37
                 ->end()
... ...
@@ -16,7 +16,6 @@ use Symfony\Component\Config\FileLocator;
16 16
 use Symfony\Component\DependencyInjection\ContainerBuilder;
17 17
 use Symfony\Component\DependencyInjection\Extension\Extension;
18 18
 use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
19
-use vonRotenberg\ShopwareApiBundle\DependencyInjection\Configuration;
20 19
 
21 20
 class VonrotenbergWmfgoCevisioExtension extends Extension
22 21
 {