ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
WOPI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS;
22
29
30class WOPI implements Component
31{
32 public function init(
33 array | \ArrayAccess &$define,
34 array | \ArrayAccess &$implement,
35 array | \ArrayAccess &$use,
36 array | \ArrayAccess &$contribute,
37 array | \ArrayAccess &$seek,
38 array | \ArrayAccess &$provide,
39 array | \ArrayAccess &$pull,
40 array | \ArrayAccess &$internal,
41 ): void {
42 $contribute[Agent::class] = static fn(): \ilWOPISetupAgent =>
44 $pull[Factory::class]
45 );
46
47 $contribute[PublicAsset::class] = fn(): Endpoint =>
48 new Endpoint($this, "index.php", "wopi");
49
50 $contribute[PublicAsset::class] = fn(): ComponentJS =>
51 new ComponentJS($this, "js/dist/wopi.min.js");
52 }
53}
This is a js file provided by some component.
Definition: ComponentJS.php:27
An endpoint is a PHP file that produces output via HTTP.
Definition: Endpoint.php:29
Builds a Color from either hex- or rgb values.
Definition: Factory.php:31
Builds data types.
Definition: Factory.php:36
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: WOPI.php:32
An public asset is a file or folder that should be served via the web.
Definition: PublicAsset.php:27
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.