ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
Search.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS;
22
24use ILIAS\Refinery\Factory as RefineryFactory;
25use ILIAS\Search\Setup\Agent as SearchSetupAgent;
26
28{
29 public function init(
30 array | \ArrayAccess &$define,
31 array | \ArrayAccess &$implement,
32 array | \ArrayAccess &$use,
33 array | \ArrayAccess &$contribute,
34 array | \ArrayAccess &$seek,
35 array | \ArrayAccess &$provide,
36 array | \ArrayAccess &$pull,
37 array | \ArrayAccess &$internal,
38 ): void {
39 $contribute[Component\Resource\PublicAsset::class] = fn() =>
40 new Component\Resource\ComponentJS($this, "SearchMainMenu.js");
41 $contribute[Component\Resource\PublicAsset::class] = fn() =>
42 new Component\Resource\ComponentJS($this, "Search.js");
43 $contribute[SetupAgent::class] = fn() => new SearchSetupAgent($pull[RefineryFactory::class]);
44 }
45}
This is a js file provided by some component.
Definition: ComponentJS.php:27
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: Search.php:29
An public asset is a file or folder that should be served via the web.
Definition: PublicAsset.php:27
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.