8require_once(__DIR__ .
"/../libs/composer/vendor/autoload.php");
10require_once(__DIR__ .
"/../include/inc.ilias_version.php");
13if (!defined(
"MAGPIE_DIR")) {
14 define(
"MAGPIE_DIR",
"./Services/Feeds/magpierss/");
17require_once(__DIR__ .
"/classes/class.ilSetupObjective.php");
18require_once(__DIR__ .
"/classes/class.ilSetupAgent.php");
19require_once(__DIR__ .
"/classes/class.ilSetupConfig.php");
20require_once(__DIR__ .
"/classes/class.ilMakeInstallationAccessibleObjective.php");
21require_once(__DIR__ .
"/classes/class.ilUseRootConfirmed.php");
22require_once(__DIR__ .
"/classes/class.ilOwnRiskConfirmedObjective.php");
23require_once(__DIR__ .
"/classes/class.ilOverwritesExistingInstallationConfirmed.php");
24require_once(__DIR__ .
"/classes/class.ilIniFilesPopulatedObjective.php");
25require_once(__DIR__ .
"/classes/class.ilIniFilesLoadedObjective.php");
26require_once(__DIR__ .
"/classes/class.ilNICKeyRegisteredObjective.php");
27require_once(__DIR__ .
"/classes/class.ilNICKeyStoredObjective.php");
28require_once(__DIR__ .
"/classes/class.ilSetupConfigStoredObjective.php");
29require_once(__DIR__ .
"/classes/class.ilSetupMetricsCollectedObjective.php");
35use 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");
147 return new \ILIAS\Setup\CLI\ConfigReader(
152 $c[
"interface_finder"] =
function (
$c) {
153 return new \ILIAS\Setup\ImplementationOfInterfaceFinder();
156 $c[
"plugin_raw_reader"] =
function (
$c) {
157 return new \ilPluginRawReader();
An exception for terminatinating execution or to throw for unit testing.
build_container_for_setup(string $executed_in_directory)