6 chdir(__DIR__ .
"/..");
8 require_once(__DIR__ .
"/../libs/composer/vendor/autoload.php");
10 require_once(__DIR__ .
"/../include/inc.ilias_version.php");
13 if (!defined(
"MAGPIE_DIR")) {
14 define(
"MAGPIE_DIR",
"./Services/Feeds/magpierss/");
17 require_once(__DIR__ .
"/classes/class.ilSetupObjective.php");
18 require_once(__DIR__ .
"/classes/class.ilSetupAgent.php");
19 require_once(__DIR__ .
"/classes/class.ilSetupConfig.php");
20 require_once(__DIR__ .
"/classes/class.ilMakeInstallationAccessibleObjective.php");
21 require_once(__DIR__ .
"/classes/class.ilUseRootConfirmed.php");
22 require_once(__DIR__ .
"/classes/class.ilOwnRiskConfirmedObjective.php");
23 require_once(__DIR__ .
"/classes/class.ilOverwritesExistingInstallationConfirmed.php");
24 require_once(__DIR__ .
"/classes/class.ilIniFilesPopulatedObjective.php");
25 require_once(__DIR__ .
"/classes/class.ilIniFilesLoadedObjective.php");
26 require_once(__DIR__ .
"/classes/class.ilNICKeyRegisteredObjective.php");
27 require_once(__DIR__ .
"/classes/class.ilNICKeyStoredObjective.php");
28 require_once(__DIR__ .
"/classes/class.ilSetupConfigStoredObjective.php");
29 require_once(__DIR__ .
"/classes/class.ilSetupMetricsCollectedObjective.php");
35 use ILIAS\UI\Component\Input\Field\ViewControl\Factory as ViewControlFactory;
45 if (!defined(
"ILIAS_SETUP_IGNORE_DB_UPDATE_STEP_MESSAGES") || !ILIAS_SETUP_IGNORE_DB_UPDATE_STEP_MESSAGES) {
46 throw new \ILIAS\Setup\UnachievableException(
$message);
52 $c = new \Pimple\Container;
54 $c[
"app"] =
function (
$c) {
55 return new \ILIAS\Setup\CLI\App(
56 $c[
"command.install"],
58 $c[
"command.build-artifacts"],
59 $c[
"command.achieve"],
64 $c[
"command.install"] =
function (
$c) {
65 return new \ILIAS\Setup\CLI\InstallCommand(
68 $c[
"common_preconditions"]
71 $c[
"command.update"] =
function (
$c) {
72 return new \ILIAS\Setup\CLI\UpdateCommand(
75 $c[
"common_preconditions"]
78 $c[
"command.build-artifacts"] =
function (
$c) {
79 return new \ILIAS\Setup\CLI\BuildArtifactsCommand(
83 $c[
"command.achieve"] =
function (
$c) {
84 return new \ILIAS\Setup\CLI\AchieveCommand(
87 $c[
"common_preconditions"],
91 $c[
"command.status"] =
function (
$c) {
92 return new \ILIAS\Setup\CLI\StatusCommand(
97 $c[
"command.migrate"] =
function (
$c) {
98 return new \ILIAS\Setup\CLI\MigrateCommand(
100 $c[
"common_preconditions"]
104 $c[
"common_preconditions"] =
function (
$c) {
106 new \ilOwnRiskConfirmedObjective(),
107 new \ilUseRootConfirmed()
111 $c[
"common_agent"] =
function (
$c) {
112 return new \ilSetupAgent(
118 $c[
"agent_finder"] =
function (
$c) {
123 $c[
"interface_finder"],
124 $c[
"plugin_raw_reader"],
126 "common" =>
$c[
"common_agent"]
131 $c[
"refinery"] =
function (
$c) {
138 $c[
"data_factory"] =
function (
$c) {
142 $c[
"lng"] =
function (
$c) {
143 return new \ilSetupLanguage(
"en");
146 $c[
"config_reader"] =
function (
$c) use ($executed_in_directory) {
147 return new \ILIAS\Setup\CLI\ConfigReader(
148 $executed_in_directory
152 $c[
"interface_finder"] =
function (
$c) {
153 return new \ILIAS\Setup\ImplementationOfInterfaceFinder();
156 $c[
"plugin_raw_reader"] =
function (
$c) {
157 return new \ilPluginRawReader();
build_container_for_setup(string $executed_in_directory)