ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.Service.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Glossary
;
22
23
use
ILIAS\DI\Container
;
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
}
ILIAS\Glossary\Service\__construct
__construct(Container $DIC)
Definition:
class.Service.php:30
ILIAS\Glossary\Service
Definition:
class.Service.php:25
Container
ILIAS\Glossary\InternalService
Definition:
class.InternalService.php:25
ILIAS\Glossary\Service\$instance
static array $instance
Definition:
class.Service.php:28
ILIAS\Glossary
DIC
ILIAS\Container
Definition:
Container.php:23
ILIAS\Glossary\Service\$DIC
Container $DIC
Definition:
class.Service.php:27
components
ILIAS
Glossary
Service
class.Service.php
Generated on Sun Aug 31 2025 23:02:16 for ILIAS by
1.8.13 (using
Doxyfile
)