ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.InternalDomainService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Help;
22
29
31{
32 use GlobalDICDomainServices;
33
34 protected array $container = [];
35
38
39 public function __construct(
43 ) {
44 $this->repo_service = $repo_service;
45 $this->data_service = $data_service;
46 $this->initDomainServices($DIC);
47 }
48
49 public function map(): MapManager
50 {
51 return $this->container["map"] ??
52 $this->container["map"] = new MapManager(
53 $this->repo_service,
54 $this
55 );
56 }
57
58 public function tooltips(): TooltipsManager
59 {
60 return $this->container["tooltips"] ??
61 $this->container["tooltips"] = new TooltipsManager(
62 $this->repo_service,
63 $this
64 );
65 }
66
67 public function module(): ModuleManager
68 {
69 if (!isset($this->container["module"])) {
70 $this->container["module"] = new ModuleManager(
71 $this->repo_service->module(),
72 $this
73 );
74 }
75 return $this->container["module"];
76 }
77
79 {
80 return $this->container["presentation"] ??
81 $this->container["presentation"] = new PresentationManager(
82 $this
83 );
84 }
85
86}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
__construct(Container $DIC, InternalRepoService $repo_service, InternalDataService $data_service)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
initDomainServices(\ILIAS\DI\Container $DIC)
global $DIC
Definition: shib_login.php:26