ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
cli.php File Reference

Go to the source code of this file.

Functions

 setup_exit ($message)
 
 build_container_for_setup (string $executed_in_directory)
 

Variables

 $executed_in_directory = getcwd()
 
 if (!defined("MAGPIE_DIR"))
 
 $c = build_container_for_setup($executed_in_directory)
 
 $app = $c["app"]
 

Function Documentation

◆ build_container_for_setup()

build_container_for_setup ( string  $executed_in_directory)

Definition at line 51 of file cli.php.

References $c.

51  : \Pimple\Container
52 {
53  $c = new \Pimple\Container();
54 
55  $c["app"] = function ($c) {
56  return new \ILIAS\Setup\CLI\App(
57  $c["command.install"],
58  $c["command.update"],
59  $c["command.build-artifacts"],
60  $c["command.achieve"],
61  $c["command.status"],
62  $c["command.migrate"]
63  );
64  };
65  $c["command.install"] = function ($c) {
66  return new \ILIAS\Setup\CLI\InstallCommand(
67  $c["agent_finder"],
68  $c["config_reader"],
69  $c["common_preconditions"]
70  );
71  };
72  $c["command.update"] = function ($c) {
73  return new \ILIAS\Setup\CLI\UpdateCommand(
74  $c["agent_finder"],
75  $c["config_reader"],
76  $c["common_preconditions"]
77  );
78  };
79  $c["command.build-artifacts"] = function ($c) {
80  return new \ILIAS\Setup\CLI\BuildArtifactsCommand(
81  $c["agent_finder"]
82  );
83  };
84  $c["command.achieve"] = function ($c) {
85  return new \ILIAS\Setup\CLI\AchieveCommand(
86  $c["agent_finder"],
87  $c["config_reader"],
88  $c["common_preconditions"],
89  $c["refinery"]
90  );
91  };
92  $c["command.status"] = function ($c) {
93  return new \ILIAS\Setup\CLI\StatusCommand(
94  $c["agent_finder"]
95  );
96  };
97 
98  $c["command.migrate"] = function ($c) {
99  return new \ILIAS\Setup\CLI\MigrateCommand(
100  $c["agent_finder"],
101  $c["common_preconditions"]
102  );
103  };
104 
105  $c["common_preconditions"] = function ($c) {
106  return [
107  new \ilOwnRiskConfirmedObjective(),
108  new \ilUseRootConfirmed()
109  ];
110  };
111 
112  $c["common_agent"] = function ($c) {
113  return new \ilSetupAgent(
114  $c["refinery"],
115  $c["data_factory"]
116  );
117  };
118 
119  $c["agent_finder"] = function ($c) {
121  $c["refinery"],
122  $c["data_factory"],
123  $c["lng"],
124  $c["interface_finder"],
125  [
126  "common" => $c["common_agent"]
127  ]
128  );
129  };
130 
131  $c["refinery"] = function ($c) {
132  return new ILIAS\Refinery\Factory(
133  $c["data_factory"],
134  $c["lng"]
135  );
136  };
137 
138  $c["data_factory"] = function ($c) {
139  return new ILIAS\Data\Factory();
140  };
141 
142  $c["lng"] = function ($c) {
143  return new \ilSetupLanguage("en");
144  };
145 
146  $c["config_reader"] = function ($c) use ($executed_in_directory) {
147  return new \ILIAS\Setup\CLI\ConfigReader(
148  $c["json.parser"],
150  );
151  };
152 
153  $c["interface_finder"] = function ($c) {
154  return new \ILIAS\Setup\ImplementationOfInterfaceFinder();
155  };
156 
157  $c["json.parser"] = function ($c) {
158  return new \Seld\JsonLint\JsonParser();
159  };
160 
161  return $c;
162 }
$c
Definition: cli.php:38
$executed_in_directory
Definition: cli.php:7

◆ setup_exit()

setup_exit (   $message)

Definition at line 44 of file cli.php.

References $message.

45 {
46  if (!defined("ILIAS_SETUP_IGNORE_DB_UPDATE_STEP_MESSAGES") || !ILIAS_SETUP_IGNORE_DB_UPDATE_STEP_MESSAGES) {
47  throw new \ILIAS\Setup\UnachievableException($message);
48  }
49 }
$message
Definition: xapiexit.php:32

Variable Documentation

◆ $app

$app = $c["app"]

Definition at line 39 of file cli.php.

Referenced by ilCalendarExport\addAppointments(), ilCalendarWeekGUI\addTimedEvents(), ilCalendarMailNotification\appendAppointmentDetails(), ilCalendarCategoryGUI\askDeleteAppointments(), ilConsultationHoursGUI\assignUsersToAppointment(), ilConsultationHoursGUI\assignUsersToAppointments(), ilConsultationHoursGUI\assignUsersToGroup(), ilConsultationHourUtils\bookAppointment(), ilConsultationHourUtils\cancelBooking(), ilAppointmentPresentationGroupGUI\collectPropertiesAndActions(), ilAppointmentPresentationCourseGUI\collectPropertiesAndActions(), ILIAS\Services\WOPI\Discovery\Crawler\crawl(), ilCalendarAppEventListener\createAppointments(), ilCalendarCategoryGUI\deleteAppointments(), ilCalendarDayGUI\executeCommand(), ilCalendarMonthGUI\executeCommand(), ilCalendarInboxGUI\executeCommand(), ilCalendarWeekGUI\executeCommand(), ilCalendarAppointmentPresentationGUI\executeCommand(), ilCalendarCategoryGUI\executeCommand(), ilCalendarPresentationGUI\executeCommand(), ilCalendarBlockGUI\executeCommand(), ilObjSession\getFirstAppointment(), ilExAssignment\handleCalendarEntries(), ilSessionDataSet\importRecord(), ilSurveySkillDeterminationGUI\listSkillChanges(), ilConsultationHourBookingTableGUI\parse(), ilConsultationHoursTableGUI\parse(), ilCalendarWeekGUI\parseHourInfo(), ilCalendarDayGUI\parseInfoIntoRaster(), ilObjGroup\prepareAppointments(), ilObjCourse\prepareAppointments(), ilObjSession\prepareCalendarAppointments(), ilObjEmployeeTalk\read(), ilObjSurvey\sent360Reminders(), ilCalendarDayGUI\show(), and ILIAS\Services\WOPI\Discovery\AppDBRepository\storeCollection().

◆ $c

$c = build_container_for_setup($executed_in_directory)

Definition at line 38 of file cli.php.

Referenced by build_container_for_setup().

◆ $executed_in_directory

$executed_in_directory = getcwd()

Definition at line 7 of file cli.php.

◆ if

if(!defined("MAGPIE_DIR"))

Definition at line 15 of file cli.php.