} } $pluginBundle =
array_values($pluginBundles)[0
];
$directory =
$pluginBundle->
getMigrationPath();
if (!
file_exists($directory) && !
mkdir($directory) && !
is_dir($directory)) { throw new \
RuntimeException(sprintf('Migrationdirectory "%s" could not be created',
$directory));
} $namespace =
$pluginBundle->
getMigrationNamespace();
$output->
writeln(sprintf('Creating plugin-migration with namespace %s in path %s...',
$namespace,
$directory));
} else { [$_,
$major] =
explode('.',
$this->shopwareVersion
);
// We create a core-migration in case no plugin was given
$directory =
$this->coreDir . '/Migration/V6_' .
$major;
$namespace = 'Shopware\\Core\\Migration\\V6_' .
$major;
} $params =
[ '%%timestamp%%' =>
$timestamp,
'%%name%%' =>
$name,