3 declare(strict_types=1);
8 chdir(__DIR__ .
"/..");
10 require_once(__DIR__ .
"/../libs/composer/vendor/autoload.php");
12 require_once(__DIR__ .
"/../include/inc.ilias_version.php");
15 if (!defined(
"MAGPIE_DIR")) {
16 define(
"MAGPIE_DIR",
"./Services/Feeds/magpierss/");
19 require_once(__DIR__ .
"/classes/class.ilSetupObjective.php");
20 require_once(__DIR__ .
"/classes/class.ilSetupAgent.php");
21 require_once(__DIR__ .
"/classes/class.ilSetupConfig.php");
22 require_once(__DIR__ .
"/classes/class.ilMakeInstallationAccessibleObjective.php");
23 require_once(__DIR__ .
"/classes/class.ilUseRootConfirmed.php");
24 require_once(__DIR__ .
"/classes/class.ilOwnRiskConfirmedObjective.php");
25 require_once(__DIR__ .
"/classes/class.ilOverwritesExistingInstallationConfirmed.php");
26 require_once(__DIR__ .
"/classes/class.ilIniFilesPopulatedObjective.php");
27 require_once(__DIR__ .
"/classes/class.ilIniFilesLoadedObjective.php");
28 require_once(__DIR__ .
"/classes/class.ilNICKeyRegisteredObjective.php");
29 require_once(__DIR__ .
"/classes/class.ilNICKeyStoredObjective.php");
30 require_once(__DIR__ .
"/classes/class.ilSetupConfigStoredObjective.php");
31 require_once(__DIR__ .
"/classes/class.ilSetupMetricsCollectedObjective.php");
46 if (!defined(
"ILIAS_SETUP_IGNORE_DB_UPDATE_STEP_MESSAGES") || !ILIAS_SETUP_IGNORE_DB_UPDATE_STEP_MESSAGES) {
47 throw new \ILIAS\Setup\UnachievableException(
$message);
53 $c = new \Pimple\Container();
55 $c[
"app"] =
function (
$c) {
56 return new \ILIAS\Setup\CLI\App(
57 $c[
"command.install"],
59 $c[
"command.build-artifacts"],
60 $c[
"command.achieve"],
65 $c[
"command.install"] =
function (
$c) {
66 return new \ILIAS\Setup\CLI\InstallCommand(
69 $c[
"common_preconditions"]
72 $c[
"command.update"] =
function (
$c) {
73 return new \ILIAS\Setup\CLI\UpdateCommand(
76 $c[
"common_preconditions"]
79 $c[
"command.build-artifacts"] =
function (
$c) {
80 return new \ILIAS\Setup\CLI\BuildArtifactsCommand(
84 $c[
"command.achieve"] =
function (
$c) {
85 return new \ILIAS\Setup\CLI\AchieveCommand(
88 $c[
"common_preconditions"],
92 $c[
"command.status"] =
function (
$c) {
93 return new \ILIAS\Setup\CLI\StatusCommand(
98 $c[
"command.migrate"] =
function (
$c) {
99 return new \ILIAS\Setup\CLI\MigrateCommand(
101 $c[
"common_preconditions"]
105 $c[
"common_preconditions"] =
function (
$c) {
107 new \ilOwnRiskConfirmedObjective(),
108 new \ilUseRootConfirmed()
112 $c[
"common_agent"] =
function (
$c) {
113 return new \ilSetupAgent(
119 $c[
"agent_finder"] =
function (
$c) {
124 $c[
"interface_finder"],
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(
149 $executed_in_directory
153 $c[
"interface_finder"] =
function (
$c) {
154 return new \ILIAS\Setup\ImplementationOfInterfaceFinder();
157 $c[
"json.parser"] =
function (
$c) {
158 return new \Seld\JsonLint\JsonParser();
build_container_for_setup(string $executed_in_directory)