ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
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\Export;
22 
26 class Service
27 {
28  protected static array $instance = [];
29  public function __construct()
30  {
31  }
32 
33  public function internal(): InternalService
34  {
35  return self::$instance["internal"] ??= new InternalService();
36  }
37 
38  public function domain(): ExternalDomainService
39  {
40  return self::$instance["domain"] ??= new ExternalDomainService(
41  $this->internal()->domain()
42  );
43  }
44 
45 }
static array $instance
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...