ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
Component.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS;
22
25
27{
28 public function init(
29 array | \ArrayAccess &$define,
30 array | \ArrayAccess &$implement,
31 array | \ArrayAccess &$use,
32 array | \ArrayAccess &$contribute,
33 array | \ArrayAccess &$seek,
34 array | \ArrayAccess &$provide,
35 array | \ArrayAccess &$pull,
36 array | \ArrayAccess &$internal,
37 ): void {
38 $define[] = Component\Activities\Repository::class;
39
40 $implement[Component\Activities\Repository::class] = static fn() =>
42 $seek[Component\Activities\Activity::class]
43 );
44
45 $contribute[Component\EntryPoint::class] = static fn() => new Component\EntryPoint\HelloWorld("Component/HelloWorld");
46 $contribute[Component\EntryPoint::class] = static fn() =>
48 $use[Component\Activities\Repository::class]
49 );
50
51 $contribute[\ILIAS\Setup\Agent::class] = static fn() =>
52 new \ilComponentsSetupAgent(
53 $internal[Component\Resource\PublicAssetManager::class],
54 $seek[Component\Resource\PublicAsset::class]
55 );
56
57 $internal[Component\Resource\PublicAssetManager::class] = static fn() =>
59 $contribute[LanguageFileDirectory::class] = fn() => new ComponentLanguageFileDirectory(
60 $this,
61 'cmps'
62 );
63 }
64}
A simple entrypoint that just says hello, for testing and documentation purpose.
A simple entrypoint that just says hello, for testing and documentation purpose.
Definition: HelloWorld.php:31
Will take care of the public assets, just like a good manager does.
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: Component.php:28
A directory of language files with a path and a prefix for them.
A component is the most general form of an entity in the UI.
Definition: Component.php:28
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.