ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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,)
 
 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 
)

Definition at line 35 of file AllModernComponents.php.

96  {
97  }

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 178 of file AllModernComponents.php.

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

178  : int
179  {
180  global $DIC;
181 
182  $DIC = new \ILIAS\DI\Container();
183  $GLOBALS['DIC'] = $DIC;
184 
186 
188 
189  return 0;
190  }
populateComponentsInLegacyEnvironment(\Pimple\Container $DIC)
Populates already bootstrapped components in the legacy service locator $DIC.
static initILIAS()
ilias initialisation
$GLOBALS["DIC"]
Definition: wac.php:53
global $DIC
Definition: shib_login.php:22
+ Here is the call graph for this function:

◆ getName()

ILIAS\Init\AllModernComponents::getName ( )

Implements ILIAS\Component\EntryPoint.

Definition at line 173 of file AllModernComponents.php.

173  : string
174  {
175  return 'ILIAS Legacy Initialisation Adapter';
176  }

◆ 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[::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 108 of file AllModernComponents.php.

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

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

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