ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
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\Service\Service as GUIService;
26
28{
29 protected PresentationService $presentation;
30 protected GUIService $gui;
31
32 public function __construct(
33 protected Container $dic
34 ) {
35 $this->dic->language()->loadLanguageModule('search');
36
37 $this->presentation = new PresentationService(
38 $this->dic
39 );
40 $this->gui = new GUIService(
41 $this->dic,
42 $this->presentation
43 );
44 }
45
46 public function dic(): Container
47 {
48 return $this->dic;
49 }
50
51 public function presentation(): PresentationService
52 {
54 }
55
56 public function gui(): GUIService
57 {
58 return $this->gui;
59 }
60}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
PresentationService $presentation
Definition: Service.php:29
__construct(protected Container $dic)
Definition: Service.php:32
$dic
Definition: ltiresult.php:33