|
|
@@ -60,15 +60,11 @@ class CreateSiteCommand extends Command
|
|
|
protected function execute(InputInterface $input, OutputInterface $output)
|
|
|
{
|
|
|
$org_id = $input->getArgument('organization-id');
|
|
|
- $isDev = $input->getOption('dev');
|
|
|
|
|
|
$io = new SymfonyStyle($input, $output);
|
|
|
|
|
|
$siteController = GeneralUtility::makeInstance(ObjectManager::class)->get(SiteController::class);
|
|
|
- $rootUid = $siteController->createSiteAction(
|
|
|
- $org_id,
|
|
|
- $isDev ? $siteController::MODE_DEV : $siteController::MODE_PROD
|
|
|
- );
|
|
|
+ $rootUid = $siteController->createSiteAction($org_id);
|
|
|
|
|
|
$io->success(sprintf("A new website has been created with root page uid=" . $rootUid));
|
|
|
return 0;
|