ILIAS  trunk Revision v11.0_alpha-1843-g9e1fad99175
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\Blog;
22 
24 
28 class Service
29 {
30  protected Container $DIC;
31  protected static array $instance = [];
32 
33  public function __construct(Container $DIC)
34  {
35  $this->DIC = $DIC;
36  }
37 
41  public function internal(): InternalService
42  {
43  return self::$instance["internal"] ??
44  self::$instance["internal"] = new InternalService($this->DIC);
45  }
46 }
__construct(Container $DIC)
static array $instance