ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
WOPI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS;
22
31
32class WOPI implements Component
33{
34 public function init(
35 array | \ArrayAccess &$define,
36 array | \ArrayAccess &$implement,
37 array | \ArrayAccess &$use,
38 array | \ArrayAccess &$contribute,
39 array | \ArrayAccess &$seek,
40 array | \ArrayAccess &$provide,
41 array | \ArrayAccess &$pull,
42 array | \ArrayAccess &$internal,
43 ): void {
44 $contribute[Agent::class] = static fn(): \ilWOPISetupAgent =>
46 $pull[Factory::class]
47 );
48
49 $contribute[PublicAsset::class] = fn(): Endpoint =>
50 new Endpoint($this, "index.php", "wopi");
51
52 $contribute[PublicAsset::class] = fn(): ComponentJS =>
53 new ComponentJS($this, "js/dist/wopi.min.js");
54 $contribute[LanguageFileDirectory::class] = fn() => new ComponentLanguageFileDirectory(
55 $this,
56 'wopi'
57 );
58 }
59}
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:34
An public asset is a file or folder that should be served via the web.
Definition: PublicAsset.php:27
A directory of language files with a path and a prefix for them.
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.