'path' => '.',
'managedByComposer' => true,
'composerPackage' =>
$root,
]);
} return $plugins;
} private function getVendorPluginPath(CompletePackageInterface
$pluginPackage, Composer
$composer): string
{ return $composer->
getConfig()->
get('vendor-dir'
) . '/' .
$pluginPackage->
getPrettyName();
} private function addError(string
$pluginPath, ExceptionCollection
$errors): void
{ $errors->
add(new PluginComposerJsonInvalidException( $pluginPath . '/composer.json',
[ sprintf( 'Plugin composer.json has invalid "type" (must be "%s"), or invalid "extra/%s" value, or missing extra.label property',
self::COMPOSER_TYPE,
self::SHOPWARE_PLUGIN_CLASS_EXTRA_IDENTIFIER
),