private function checkForNewStructure(Plugin $plugin, $shopwarePath)
{
$path = $shopwarePath . '/engine/Shopware/Plugins/Local/';
$pluginName = $plugin->name;
$destPath = $plugin->module . '/' . $pluginName;
$absPath = $path . '/' . $destPath;
if (file_exists($absPath . '/Bootstrap.php')) {
return;
}
rename($absPath, $shopwarePath . '/custom/plugins/' . $pluginName);
}