ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.Service.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Blog;
22
24
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}
static array $instance
__construct(Container $DIC)
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36