throw new RuntimeException('Parameter kernel.root_dir has to be an string'
);
} $source =
$input->
getOption('source'
);
if (!\
is_string($source)) { throw new RuntimeException('Option "source" needs to be a string'
);
} $sourceDir =
$rootDir . '/' .
$source . '/';
$databaseLoader->
setOutput($output);
$databaseLoader->
loadToDatabase($sourceDir,
$force);
// Import plugin snippets
if ($input->
getOption('include-plugins'
)) { $pluginRepository =
$this->container->
get('shopware.model_manager'
)->
getRepository(Plugin::
class);
/** @var Plugin[] $plugins */
$plugins =
$pluginRepository->
findBy(['active' => true
]);
$pluginDirectories =
$this->container->
getParameter('shopware.plugin_directories'
);
if (!\
is_array($pluginDirectories)) {