Ver Fonte

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

runphp há 7 meses atrás
pai
commit
fdf700b53b
1 ficheiros alterados com 1 adições e 1 exclusões
  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');