ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.Service.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Style\Content;
22 
24 
25 class Service
26 {
27  protected Container $DIC;
28  protected static array $instance = [];
29 
30  public function __construct(Container $DIC)
31  {
32  $this->DIC = $DIC;
33  }
34 
35  public function internal(): InternalService
36  {
37  return self::$instance["internal"] ??= new InternalService($this->DIC);
38  }
39 
40  public function gui(): GUIService
41  {
42  return self::$instance["gui"] ??= new GUIService($this->internal());
43  }
44 
45  public function domain(): DomainService
46  {
47  return self::$instance["domain"] ??= new DomainService($this->internal());
48  }
49 }
Facade for consumer gui interface.
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:35