ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
UICore.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS;
22 
23 class UICore implements Component\Component
24 {
25  public function init(
26  array | \ArrayAccess &$define,
27  array | \ArrayAccess &$implement,
28  array | \ArrayAccess &$use,
29  array | \ArrayAccess &$contribute,
30  array | \ArrayAccess &$seek,
31  array | \ArrayAccess &$provide,
32  array | \ArrayAccess &$pull,
33  array | \ArrayAccess &$internal,
34  ): void {
35  $define[] = UICore\GlobalTemplate::class;
36 
37  $implement[UICore\GlobalTemplate::class] = static fn() =>
38  new UICore\GlobalTemplateLegacyInitialisationAdapter();
39 
40  $contribute[\ILIAS\Setup\Agent::class] = fn() =>
41  new \ilUICoreSetupAgent();
42 
43  /* This library was missing after discussing dependencies for ILIAS 10
44  $contribute[Component\Resource\PublicAsset::class] = static fn() =>
45  new Component\Resource\NodeModule("bootstrap/dist/js/bootstrap.min.js");
46  */
47  }
48 }
init(array|\ArrayAccess &$define, array|\ArrayAccess &$implement, array|\ArrayAccess &$use, array|\ArrayAccess &$contribute, array|\ArrayAccess &$seek, array|\ArrayAccess &$provide, array|\ArrayAccess &$pull, array|\ArrayAccess &$internal,)
Definition: UICore.php:25
Interface Observer Contains several chained tasks and infos about them.