ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Init\AllModernComponents Class Reference

This entry point can be thought of as a list of all modern components. More...

+ Inheritance diagram for ILIAS\Init\AllModernComponents:
+ Collaboration diagram for ILIAS\Init\AllModernComponents:

Public Member Functions

 __construct (protected \ILIAS\Refinery\Factory $refinery_factory, protected \ILIAS\Data\Factory $data_factory, protected \ILIAS\UI\Factory $ui_factory, protected \ILIAS\UI\Renderer $ui_renderer, protected \ILIAS\UI\Implementation\Component\Counter\Factory $ui_factory_counter, protected \ILIAS\UI\Implementation\Component\Button\Factory $ui_factory_button, protected \ILIAS\UI\Implementation\Component\Listing\Factory $ui_factory_listing, protected \ILIAS\UI\Implementation\Component\Listing\Workflow\Factory $ui_factory_listing_workflow, protected \ILIAS\UI\Implementation\Component\Listing\CharacteristicValue\Factory $ui_factory_listing_characteristic_value, protected \ILIAS\UI\Implementation\Component\Listing\Entity\Factory $ui_factory_listing_entity, protected \ILIAS\UI\Implementation\Component\Image\Factory $ui_factory_image, protected \ILIAS\UI\Implementation\Component\Player\Factory $ui_factory_player, protected \ILIAS\UI\Implementation\Component\Panel\Factory $ui_factory_panel, protected \ILIAS\UI\Implementation\Component\Modal\Factory $ui_factory_modal, protected \ILIAS\UI\Implementation\Component\Dropzone\Factory $ui_factory_dropzone, protected \ILIAS\UI\Implementation\Component\Popover\Factory $ui_factory_popover, protected \ILIAS\UI\Implementation\Component\Divider\Factory $ui_factory_divider, protected \ILIAS\UI\Implementation\Component\Link\Factory $ui_factory_link, protected \ILIAS\UI\Implementation\Component\Dropdown\Factory $ui_factory_dropdown, protected \ILIAS\UI\Implementation\Component\Item\Factory $ui_factory_item, protected \ILIAS\UI\Implementation\Component\Viewcontrol\Factory $ui_factory_viewcontrol, protected \ILIAS\UI\Implementation\Component\Chart\Factory $ui_factory_chart, protected \ILIAS\UI\Implementation\Component\Input\Factory $ui_factory_input, protected \ILIAS\UI\Implementation\Component\Table\Factory $ui_factory_table, protected \ILIAS\UI\Implementation\Component\MessageBox\Factory $ui_factory_messagebox, protected \ILIAS\UI\Implementation\Component\Card\Factory $ui_factory_card, protected \ILIAS\UI\Implementation\Component\Layout\Factory $ui_factory_layout, protected \ILIAS\UI\Implementation\Component\Layout\Page\Factory $ui_factory_layout_page, protected \ILIAS\UI\Implementation\Component\Layout\Alignment\Factory $ui_factory_layout_alignment, protected \ILIAS\UI\Implementation\Component\Maincontrols\Factory $ui_factory_maincontrols, protected \ILIAS\UI\Implementation\Component\Tree\Factory $ui_factory_tree, protected \ILIAS\UI\Implementation\Component\Tree\Node\Factory $ui_factory_tree_node, protected \ILIAS\UI\Implementation\Component\Menu\Factory $ui_factory_menu, protected \ILIAS\UI\Implementation\Component\Symbol\Factory $ui_factory_symbol, protected \ILIAS\UI\Implementation\Component\Toast\Factory $ui_factory_toast, protected \ILIAS\UI\Implementation\Component\Legacy\Factory $ui_factory_legacy, protected \ILIAS\UI\Implementation\Component\Launcher\Factory $ui_factory_launcher, protected \ILIAS\UI\Implementation\Component\Entity\Factory $ui_factory_entity, protected \ILIAS\UI\Implementation\Component\Panel\Listing\Factory $ui_factory_panel_listing, protected \ILIAS\UI\Implementation\Component\Panel\Secondary\Factory $ui_factory_panel_secondary, protected \ILIAS\UI\Implementation\Component\Modal\InterruptiveItem\Factory $ui_factory_interruptive_item, protected \ILIAS\UI\Implementation\Component\Chart\ProgressMeter\Factory $ui_factory_progressmeter, protected \ILIAS\UI\Implementation\Component\Chart\Bar\Factory $ui_factory_bar, protected \ILIAS\UI\Implementation\Component\Input\Viewcontrol\Factory $ui_factory_input_viewcontrol, protected \ILIAS\UI\Implementation\Component\Input\Container\ViewControl\Factory $ui_factory_input_container_viewcontrol, protected \ILIAS\UI\Implementation\Component\Table\Column\Factory $ui_factory_table_column, protected \ILIAS\UI\Implementation\Component\Table\Factory $ui_factory_table_action, protected \ILIAS\UI\Implementation\Component\Maincontrols\Slate\Factory $ui_factory_maincontrols_slate, protected \ILIAS\UI\Implementation\Component\Symbol\icon\Factory $ui_factory_symbol_icon, protected \ILIAS\UI\Implementation\Component\Symbol\Glyph\Factory $ui_factory_symbol_glyph, protected \ILIAS\UI\Implementation\Component\Symbol\avatar\Factory $ui_factory_symbol_avatar, protected \ILIAS\UI\Implementation\Component\Input\Container\Form\Factory $ui_factory_input_container_form, protected \ILIAS\UI\Implementation\Component\Input\Container\Filter\Factory $ui_factory_input_container_filter, protected \ILIAS\UI\Implementation\Component\Input\Field\Factory $ui_factory_input_field, protected \ILIAS\UI\Implementation\Component\Prompt\Factory $ui_prompt_factory, protected \ILIAS\UI\Implementation\Component\Prompt\State\Factory $ui_prompt_state_factory, protected \ILIAS\UI\Implementation\Component\Progress\Factory $ui_progress_factory, protected \ILIAS\UI\Implementation\Component\Progress\State\Factory $ui_progress_state_factory, protected \ILIAS\UI\Implementation\Component\Progress\State\Bar\Factory $ui_progress_state_bar_factory, protected \ILIAS\UI\Implementation\Component\Input\UploadLimitResolver $ui_upload_limit_resolver, protected \ILIAS\Setup\AgentFinder $setup_agent_finder, protected \ILIAS\UI\Implementation\Component\Navigation\Factory $ui_factory_navigation,)
 
 getName ()
 
 enter ()
 Pass program execution to this entry point. More...
 
 getName ()
 
 enter ()
 Pass program execution to this entry point. More...
 

Protected Member Functions

 populateComponentsInLegacyEnvironment (\Pimple\Container $DIC)
 Populates already bootstrapped components in the legacy service locator $DIC. More...
 

Detailed Description

This entry point can be thought of as a list of all modern components.

Modern components are those initialised using the new component bootstrap mechanism. This class serves as an adapter to the legacy ILIAS initialisation and populates modern components inside the legacy service locator $DIC, so they will available when calling

See also
ilInitialisation::initILIAS()
Author
Thibeau Fuhrer thibe.nosp@m.au@s.nosp@m.r.sol.nosp@m.utio.nosp@m.ns

Definition at line 33 of file AllModernComponents.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Init\AllModernComponents::__construct ( protected \ILIAS\Refinery\Factory  $refinery_factory,
protected \ILIAS\Data\Factory  $data_factory,
protected \ILIAS\UI\Factory  $ui_factory,
protected \ILIAS\UI\Renderer  $ui_renderer,
protected \ILIAS\UI\Implementation\Component\Counter\Factory  $ui_factory_counter,
protected \ILIAS\UI\Implementation\Component\Button\Factory  $ui_factory_button,
protected \ILIAS\UI\Implementation\Component\Listing\Factory  $ui_factory_listing,
protected \ILIAS\UI\Implementation\Component\Listing\Workflow\Factory  $ui_factory_listing_workflow,
protected \ILIAS\UI\Implementation\Component\Listing\CharacteristicValue\Factory  $ui_factory_listing_characteristic_value,
protected \ILIAS\UI\Implementation\Component\Listing\Entity\Factory  $ui_factory_listing_entity,
protected \ILIAS\UI\Implementation\Component\Image\Factory  $ui_factory_image,
protected \ILIAS\UI\Implementation\Component\Player\Factory  $ui_factory_player,
protected \ILIAS\UI\Implementation\Component\Panel\Factory  $ui_factory_panel,
protected \ILIAS\UI\Implementation\Component\Modal\Factory  $ui_factory_modal,
protected \ILIAS\UI\Implementation\Component\Dropzone\Factory  $ui_factory_dropzone,
protected \ILIAS\UI\Implementation\Component\Popover\Factory  $ui_factory_popover,
protected \ILIAS\UI\Implementation\Component\Divider\Factory  $ui_factory_divider,
protected \ILIAS\UI\Implementation\Component\Link\Factory  $ui_factory_link,
protected \ILIAS\UI\Implementation\Component\Dropdown\Factory  $ui_factory_dropdown,
protected \ILIAS\UI\Implementation\Component\Item\Factory  $ui_factory_item,
protected \ILIAS\UI\Implementation\Component\Viewcontrol\Factory  $ui_factory_viewcontrol,
protected \ILIAS\UI\Implementation\Component\Chart\Factory  $ui_factory_chart,
protected \ILIAS\UI\Implementation\Component\Input\Factory  $ui_factory_input,
protected \ILIAS\UI\Implementation\Component\Table\Factory  $ui_factory_table,
protected \ILIAS\UI\Implementation\Component\MessageBox\Factory  $ui_factory_messagebox,
protected \ILIAS\UI\Implementation\Component\Card\Factory  $ui_factory_card,
protected \ILIAS\UI\Implementation\Component\Layout\Factory  $ui_factory_layout,
protected \ILIAS\UI\Implementation\Component\Layout\Page\Factory  $ui_factory_layout_page,
protected \ILIAS\UI\Implementation\Component\Layout\Alignment\Factory  $ui_factory_layout_alignment,
protected \ILIAS\UI\Implementation\Component\Maincontrols\Factory  $ui_factory_maincontrols,
protected \ILIAS\UI\Implementation\Component\Tree\Factory  $ui_factory_tree,
protected \ILIAS\UI\Implementation\Component\Tree\Node\Factory  $ui_factory_tree_node,
protected \ILIAS\UI\Implementation\Component\Menu\Factory  $ui_factory_menu,
protected \ILIAS\UI\Implementation\Component\Symbol\Factory  $ui_factory_symbol,
protected \ILIAS\UI\Implementation\Component\Toast\Factory  $ui_factory_toast,
protected \ILIAS\UI\Implementation\Component\Legacy\Factory  $ui_factory_legacy,
protected \ILIAS\UI\Implementation\Component\Launcher\Factory  $ui_factory_launcher,
protected \ILIAS\UI\Implementation\Component\Entity\Factory  $ui_factory_entity,
protected \ILIAS\UI\Implementation\Component\Panel\Listing\Factory  $ui_factory_panel_listing,
protected \ILIAS\UI\Implementation\Component\Panel\Secondary\Factory  $ui_factory_panel_secondary,
protected \ILIAS\UI\Implementation\Component\Modal\InterruptiveItem\Factory  $ui_factory_interruptive_item,
protected \ILIAS\UI\Implementation\Component\Chart\ProgressMeter\Factory  $ui_factory_progressmeter,
protected \ILIAS\UI\Implementation\Component\Chart\Bar\Factory  $ui_factory_bar,
protected \ILIAS\UI\Implementation\Component\Input\Viewcontrol\Factory  $ui_factory_input_viewcontrol,
protected \ILIAS\UI\Implementation\Component\Input\Container\ViewControl\Factory  $ui_factory_input_container_viewcontrol,
protected \ILIAS\UI\Implementation\Component\Table\Column\Factory  $ui_factory_table_column,
protected \ILIAS\UI\Implementation\Component\Table\Factory  $ui_factory_table_action,
protected \ILIAS\UI\Implementation\Component\Maincontrols\Slate\Factory  $ui_factory_maincontrols_slate,
protected \ILIAS\UI\Implementation\Component\Symbol\icon\Factory  $ui_factory_symbol_icon,
protected \ILIAS\UI\Implementation\Component\Symbol\Glyph\Factory  $ui_factory_symbol_glyph,
protected \ILIAS\UI\Implementation\Component\Symbol\avatar\Factory  $ui_factory_symbol_avatar,
protected \ILIAS\UI\Implementation\Component\Input\Container\Form\Factory  $ui_factory_input_container_form,
protected \ILIAS\UI\Implementation\Component\Input\Container\Filter\Factory  $ui_factory_input_container_filter,
protected \ILIAS\UI\Implementation\Component\Input\Field\Factory  $ui_factory_input_field,
protected \ILIAS\UI\Implementation\Component\Prompt\Factory  $ui_prompt_factory,
protected \ILIAS\UI\Implementation\Component\Prompt\State\Factory  $ui_prompt_state_factory,
protected \ILIAS\UI\Implementation\Component\Progress\Factory  $ui_progress_factory,
protected \ILIAS\UI\Implementation\Component\Progress\State\Factory  $ui_progress_state_factory,
protected \ILIAS\UI\Implementation\Component\Progress\State\Bar\Factory  $ui_progress_state_bar_factory,
protected \ILIAS\UI\Implementation\Component\Input\UploadLimitResolver  $ui_upload_limit_resolver,
protected \ILIAS\Setup\AgentFinder  $setup_agent_finder,
protected \ILIAS\UI\Implementation\Component\Navigation\Factory  $ui_factory_navigation 
)

Definition at line 35 of file AllModernComponents.php.

98 {
99 }

Member Function Documentation

◆ enter()

ILIAS\Init\AllModernComponents::enter ( )

Pass program execution to this entry point.

Returns
int 0 if everthing went fine, or an error-code.

Implements ILIAS\Component\EntryPoint.

Definition at line 182 of file AllModernComponents.php.

182 : int
183 {
184 global $DIC;
185
186 $DIC = new \ILIAS\DI\Container();
187 $GLOBALS['DIC'] = $DIC;
188
190
192
193 return 0;
194 }
populateComponentsInLegacyEnvironment(\Pimple\Container $DIC)
Populates already bootstrapped components in the legacy service locator $DIC.
static initILIAS()
ilias initialisation
global $DIC
Definition: shib_login.php:26
$GLOBALS["DIC"]
Definition: wac.php:54

References $DIC, $GLOBALS, ilInitialisation\initILIAS(), and ILIAS\Init\AllModernComponents\populateComponentsInLegacyEnvironment().

+ Here is the call graph for this function:

◆ getName()

ILIAS\Init\AllModernComponents::getName ( )

Implements ILIAS\Component\EntryPoint.

Definition at line 177 of file AllModernComponents.php.

177 : string
178 {
179 return 'ILIAS Legacy Initialisation Adapter';
180 }

◆ populateComponentsInLegacyEnvironment()

ILIAS\Init\AllModernComponents::populateComponentsInLegacyEnvironment ( \Pimple\Container  $DIC)
protected

Populates already bootstrapped components in the legacy service locator $DIC.

Components which are not contained in the service locator are populated using their fully qualified namespace. E.g. to zse the data factory, access it the service like $DIC[\ILIAS\Refinery\Factory::class]; Components which have been populated in the past at some point, should be populated using their legacy offset, since it cannot be service-located by legacy components otherwise.

Definition at line 110 of file AllModernComponents.php.

110 : void
111 {
112 $DIC[\ILIAS\Data\Factory::class] = fn() => $this->data_factory;
113
114 $DIC['refinery'] = fn() => $this->refinery_factory;
115 $DIC['ui.factory.counter'] = fn() => $this->ui_factory_counter;
116 $DIC['ui.factory.button'] = fn() => $this->ui_factory_button;
117 $DIC['ui.factory.listing'] = fn() => $this->ui_factory_listing;
118 $DIC['ui.factory.listing.workflow'] = fn() => $this->ui_factory_listing_workflow;
119 $DIC['ui.factory.listing.characteristic_value'] = fn() => $this->ui_factory_listing_characteristic_value;
120 $DIC['ui.factory.listing.entity'] = fn() => $this->ui_factory_listing_entity;
121 $DIC['ui.factory.image'] = fn() => $this->ui_factory_image;
122 $DIC['ui.factory.player'] = fn() => $this->ui_factory_player;
123 $DIC['ui.factory.panel'] = fn() => $this->ui_factory_panel;
124 $DIC['ui.factory.modal'] = fn() => $this->ui_factory_modal;
125 $DIC['ui.factory.progress'] = fn() => $this->ui_progress_factory;
126 $DIC['ui.factory.progress.state'] = fn() => $this->ui_progress_state_factory;
127 $DIC['ui.factory.progress.state.bar'] = fn() => $this->ui_progress_state_bar_factory;
128 $DIC['ui.factory.dropzone'] = fn() => $this->ui_factory_dropzone;
129 $DIC['ui.factory.popover'] = fn() => $this->ui_factory_popover;
130 $DIC['ui.factory.divider'] = fn() => $this->ui_factory_divider;
131 $DIC['ui.factory.link'] = fn() => $this->ui_factory_link;
132 $DIC['ui.factory.dropdown'] = fn() => $this->ui_factory_dropdown;
133 $DIC['ui.factory.item'] = fn() => $this->ui_factory_item;
134 $DIC['ui.factory.viewcontrol'] = fn() => $this->ui_factory_viewcontrol;
135 $DIC['ui.factory.chart'] = fn() => $this->ui_factory_chart;
136 $DIC['ui.factory.input'] = fn() => $this->ui_factory_input;
137 $DIC['ui.factory.table'] = fn() => $this->ui_factory_table;
138 $DIC['ui.factory.messagebox'] = fn() => $this->ui_factory_messagebox;
139 $DIC['ui.factory.card'] = fn() => $this->ui_factory_card;
140 $DIC['ui.factory.layout'] = fn() => $this->ui_factory_layout;
141 $DIC['ui.factory.layout.page'] = fn() => $this->ui_factory_layout_page;
142 $DIC['ui.factory.layout.alignment'] = fn() => $this->ui_factory_layout_alignment;
143 $DIC['ui.factory.maincontrols'] = fn() => $this->ui_factory_maincontrols;
144 $DIC['ui.factory.tree'] = fn() => $this->ui_factory_tree;
145 $DIC['ui.factory.tree.node'] = fn() => $this->ui_factory_tree_node;
146 $DIC['ui.factory.menu'] = fn() => $this->ui_factory_menu;
147 $DIC['ui.factory.symbol'] = fn() => $this->ui_factory_symbol;
148 $DIC['ui.factory.toast'] = fn() => $this->ui_factory_toast;
149 $DIC['ui.factory.legacy'] = fn() => $this->ui_factory_legacy;
150 $DIC['ui.factory.launcher'] = fn() => $this->ui_factory_launcher;
151 $DIC['ui.factory.entity'] = fn() => $this->ui_factory_entity;
152 $DIC['ui.factory.prompt'] = fn() => $this->ui_prompt_factory;
153 $DIC['ui.factory.prompt.state'] = fn() => $this->ui_prompt_state_factory;
154 $DIC['ui.factory.panel.listing'] = fn() => $this->ui_factory_panel_listing;
155 $DIC['ui.factory.panel.secondary'] = fn() => $this->ui_factory_panel_secondary;
156 $DIC['ui.factory.interruptive_item'] = fn() => $this->ui_factory_interruptive_item;
157 $DIC['ui.factory.progressmeter'] = fn() => $this->ui_factory_progressmeter;
158 $DIC['ui.factory.bar'] = fn() => $this->ui_factory_bar;
159 $DIC['ui.factory.input.viewcontrol'] = fn() => $this->ui_factory_input_viewcontrol;
160 $DIC['ui.factory.input.container.viewcontrol'] = fn() => $this->ui_factory_input_container_viewcontrol;
161 $DIC['ui.factory.table.column'] = fn() => $this->ui_factory_table_column;
162 $DIC['ui.factory.table.action'] = fn() => $this->ui_factory_table_action;
163 $DIC['ui.factory.maincontrols.slate'] = fn() => $this->ui_factory_maincontrols_slate;
164 $DIC['ui.factory.symbol.icon'] = fn() => $this->ui_factory_symbol_icon;
165 $DIC['ui.factory.symbol.glyph'] = fn() => $this->ui_factory_symbol_glyph;
166 $DIC['ui.factory.symbol.avatar'] = fn() => $this->ui_factory_symbol_avatar;
167 $DIC['ui.factory.input.container.form'] = fn() => $this->ui_factory_input_container_form;
168 $DIC['ui.factory.input.container.filter'] = fn() => $this->ui_factory_input_container_filter;
169 $DIC['ui.factory.input.field'] = fn() => $this->ui_factory_input_field;
170 $DIC['ui.upload_limit_resolver'] = fn() => $this->ui_upload_limit_resolver;
171 $DIC['ui.factory'] = fn() => $this->ui_factory;
172 $DIC['ui.renderer'] = fn() => $this->ui_renderer;
173 $DIC['setup.agentfinder'] = fn() => $this->setup_agent_finder;
174 $DIC['ui.factory.navigation'] = fn() => $this->ui_factory_input_field;
175 }

References $DIC.

Referenced by ILIAS\Init\AllModernComponents\enter().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: