Sfoglia il codice sorgente

fix(src): 非sixshop包应该跳过

runphp 7 mesi fa
parent
commit
fdf700b53b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/Plugin.php

+ 1 - 1
src/Plugin.php

@@ -34,7 +34,7 @@ class Plugin implements PluginInterface, EventSubscriberInterface
         $package = $event->getOperation()->getPackage();
         $extra = $package->getExtra();
         if (!isset($extra['sixshop'])) {
-            throw new \RuntimeException('SixShop extension must have "sixshop" extra section.');
+            return true;
         }
         if (!isset($extra['sixshop']['id']) || !isset($extra['sixshop']['class'])) {
             throw new \RuntimeException('Invalid sixshop extension configuration');