ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
Service.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24use ILIAS\Search\Presentation\Service\Service as PresentationService;
25use ILIAS\Search\GUI\Global\Service\Service as GlobalGUIService;
26use ILIAS\Search\Result\Service\Service as ResultService;
27
29{
30 protected PresentationService $presentation;
31 protected GlobalGUIService $gui;
32 protected ResultService $result;
33
34 public function __construct(
35 protected Container $dic
36 ) {
37 $this->dic->language()->loadLanguageModule('search');
38
39 $this->presentation = new PresentationService(
40 $this->dic
41 );
42 $this->gui = new GlobalGUIService(
43 $this->dic,
44 $this->presentation
45 );
46 $this->result = new ResultService(
47 $this->dic
48 );
49 }
50
51 public function dic(): Container
52 {
53 return $this->dic;
54 }
55
56 public function presentation(): PresentationService
57 {
59 }
60
61 public function gui(): GlobalGUIService
62 {
63 return $this->gui;
64 }
65
66 public function result(): ResultService
67 {
68 return $this->result;
69 }
70}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:38
PresentationService $presentation
Definition: Service.php:30
GlobalGUIService $gui
Definition: Service.php:31
__construct(protected Container $dic)
Definition: Service.php:34