ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ 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\DI\Container
Customizing of pimple-DIC for ILIAS.
Definition:
Container.php:36
ILIAS\Glossary\InternalService
Definition:
class.InternalService.php:26
ILIAS\Glossary\Service
Definition:
class.Service.php:26
ILIAS\Glossary\Service\$instance
static array $instance
Definition:
class.Service.php:28
ILIAS\Glossary\Service\$DIC
Container $DIC
Definition:
class.Service.php:27
ILIAS\Glossary\Service\__construct
__construct(Container $DIC)
Definition:
class.Service.php:30
ILIAS\Glossary
components
ILIAS
Glossary
Service
class.Service.php
Generated on Sat Oct 18 2025 23:02:35 for ILIAS by
1.9.4 (using
Doxyfile
)