ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 23 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\BackgroundTasks, ILIAS\BackgroundTasks_, ILIAS\Bibliographic, ILIAS\Cache, ILIAS\Database, ILIAS\File, ILIAS\FileDelivery, ILIAS\FileServices, ILIAS\Filesystem, ILIAS\FileUpload, ILIAS\GlobalScreen, ILIAS\HTTP, ILIAS\MainMenu, ILIAS\ResourceStorage, ILIAS\StaticURL, ILIAS\WebAccessChecker, ILIAS\WebDAV, and ILIAS\WOPI.

Definition at line 25 of file Component.php.

34 : void {
35 $define[] = Component\Activities\Repository::class;
36
37 $implement[Component\Activities\Repository::class] = static fn() =>
39 $seek[Component\Activities\Activity::class]
40 );
41
42 $contribute[Component\EntryPoint::class] = static fn() => new Component\EntryPoint\HelloWorld("Component/HelloWorld");
43 $contribute[Component\EntryPoint::class] = static fn() =>
45 $use[Component\Activities\Repository::class]
46 );
47
48 $contribute[\ILIAS\Setup\Agent::class] = static fn() =>
49 new \ilComponentsSetupAgent(
50 $internal[Component\Resource\PublicAssetManager::class],
51 $seek[Component\Resource\PublicAsset::class]
52 );
53
54 $internal[Component\Resource\PublicAssetManager::class] = static fn() =>
56 }
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: