)
->addOption(
'copy-default',
- '',
+ null,
InputOption::VALUE_NONE,
$this->trans('commands.multisite.new.options.copy-default')
);
throw new FileNotFoundException($this->trans('commands.multisite.new.errors.sites-missing'));
}
- $sites_file_contents .= "\n\$sites['$uri'] = '$this->directory';";
+ $sites_file_contents .= "\n\$sites['$this->directory'] = '$this->directory';";
try {
$this->fs->dumpFile($this->appRoot . '/sites/sites.php', $sites_file_contents);
'sites/default/settings.php'
)
);
- return;
+ return 1;
}
if ($this->fs->exists($this->appRoot . '/sites/default/files')) {
'sites/' . $this->directory . '/files'
)
);
- return;
+ return 1;
}
} else {
$io->warning($this->trans('commands.multisite.new.warnings.missing-files'));
'sites/' . $this->directory . '/settings.php'
)
);
- return;
+ return 1;
}
$this->chmodSettings($io);
$this->appRoot . '/sites/' . $this->directory . '/settings.php'
)
);
- return;
+ return 1;
}
} else {
$io->error(
'sites/default/default.settings.php'
)
);
- return;
+ return 1;
}
$this->chmodSettings($io);
$this->directory
)
);
+
+ return 0;
}
/**
$this->appRoot . '/sites/' . $this->directory . '/settings.php'
)
);
+
+ return 1;
}
}
}