ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ILIAS\Component Class Reference
+ Inheritance diagram for ILIAS\Component:
+ Collaboration diagram for ILIAS\Component:

Public Member Functions

 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,)
 
 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,)
 

Detailed Description

Definition at line 26 of file Component.php.

Member Function Documentation

◆ init()

ILIAS\Component::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 
)

Implements ILIAS\Component\Component.

Reimplemented in ILIAS\ActiveRecord, ILIAS\AdministrativeNotification, ILIAS\AuthShibboleth, ILIAS\AuthSOAP, ILIAS\BackgroundTasks, ILIAS\Bibliographic, ILIAS\Cache, ILIAS\Database, ILIAS\Environment, ILIAS\File, ILIAS\FileDelivery, ILIAS\FileServices, ILIAS\Filesystem, ILIAS\FileUpload, ILIAS\GlobalScreen, ILIAS\HTTP, ILIAS\KeyValueStorage, ILIAS\MainMenu, ILIAS\ResourceStorage, ILIAS\StaticURL, ILIAS\VirusScanner, ILIAS\WebAccessChecker, ILIAS\WebDAV, and ILIAS\WOPI.

Definition at line 28 of file Component.php.

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 }
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.

Referenced by ILIAS\Component\Tests\Dependencies\ReaderTest\testContributeWithElaborateImplementation(), ILIAS\Component\Tests\Dependencies\ReaderTest\testContributeWithoutImplementation(), ILIAS\Component\Tests\Dependencies\ReaderTest\testContributeWithSimpleImplementation(), ILIAS\Component\Tests\Dependencies\ReaderTest\testContributeWithWrongImplementation(), ILIAS\Component\Tests\Dependencies\ReaderTest\testDefineWithNonMinimalImplementation(), ILIAS\Component\Tests\Dependencies\ReaderTest\testImplementWithElaborateImplementation(), ILIAS\Component\Tests\Dependencies\ReaderTest\testImplementWithoutImplementation(), ILIAS\Component\Tests\Dependencies\ReaderTest\testImplementWithSimpleImplementation(), ILIAS\Component\Tests\Dependencies\ReaderTest\testImplementWithTwoImplementations(), ILIAS\Component\Tests\Dependencies\ReaderTest\testImplementWithWrongImplementation(), ILIAS\Component\Tests\Dependencies\ReaderTest\testNullComponent(), ILIAS\Component\Tests\Dependencies\ReaderTest\testProvideWithElaborateImplementation(), ILIAS\Component\Tests\Dependencies\ReaderTest\testProvideWithoutImplementation(), ILIAS\Component\Tests\Dependencies\ReaderTest\testProvideWithSimpleImplementation(), ILIAS\Component\Tests\Dependencies\ReaderTest\testProvideWithWrongImplementation(), ILIAS\Component\Tests\Dependencies\ReaderTest\testPullWithoutContext(), ILIAS\Component\Tests\Dependencies\ReaderTest\testReaderProvidesMocks(), ILIAS\Component\Tests\Dependencies\ReaderTest\testReaderResolvesInternal(), ILIAS\Component\Tests\Dependencies\ReaderTest\testSeekWithoutContext(), ILIAS\Component\Tests\Dependencies\ReaderTest\testSimpleDefine(), ILIAS\Component\Tests\Dependencies\ReaderTest\testSimpleInternal(), and ILIAS\Component\Tests\Dependencies\ReaderTest\testUseWithoutContext().

+ Here is the caller graph for this function:

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