ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
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\Glossary;
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 
38  public function internal(): InternalService
39  {
40  return self::$instance["internal"] ??
41  self::$instance["internal"] = new InternalService($this->DIC);
42  }
43 }
__construct(Container $DIC)