ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
ContainerSingleton.php
Go to the documentation of this file.
1
<?php
2
3
namespace
SAML2\Compat
;
4
5
use
SAML2\Compat\Ssp\Container
;
6
7
class
ContainerSingleton
8
{
12
protected
static
$container
;
13
17
public
static
function
getInstance
()
18
{
19
if
(!
self::$container
) {
20
self::setContainer(self::initSspContainer());
21
}
22
return
self::$container
;
23
}
24
31
public
static
function
setContainer
(
AbstractContainer
$container
)
32
{
33
self::$container
=
$container
;
34
return
$container
;
35
}
36
40
public
static
function
initSspContainer
()
41
{
42
return
new
Container
();
43
}
44
}
SAML2\Compat\ContainerSingleton\setContainer
static setContainer(AbstractContainer $container)
Set a container to use.
Definition:
ContainerSingleton.php:31
SAML2\Compat\ContainerSingleton
Definition:
ContainerSingleton.php:7
SAML2\Compat\ContainerSingleton\getInstance
static getInstance()
Definition:
ContainerSingleton.php:17
$container
$container
Definition:
wac.php:13
SAML2\Compat
Definition:
AbstractContainer.php:3
SAML2\Compat\Ssp\Container
Definition:
Container.php:8
SAML2\Compat\AbstractContainer
Definition:
AbstractContainer.php:5
SAML2\Compat\ContainerSingleton\$container
static $container
Definition:
ContainerSingleton.php:12
Container
SAML2\Compat\ContainerSingleton\initSspContainer
static initSspContainer()
Definition:
ContainerSingleton.php:40
libs
composer
vendor
simplesamlphp
saml2
src
SAML2
Compat
ContainerSingleton.php
Generated on Sat Jan 18 2025 19:01:09 for ILIAS by
1.8.13 (using
Doxyfile
)