ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
SAML2\Compat\ContainerSingleton Class Reference
+ Collaboration diagram for SAML2\Compat\ContainerSingleton:

Static Public Member Functions

static getInstance ()
 
static setContainer (AbstractContainer $container)
 Set a container to use. More...
 
static initSspContainer ()
 

Static Protected Attributes

static $container
 

Detailed Description

Definition at line 7 of file ContainerSingleton.php.

Member Function Documentation

◆ getInstance()

static SAML2\Compat\ContainerSingleton::getInstance ( )
static
Returns
\SAML2\Compat\Ssp\Container

Definition at line 17 of file ContainerSingleton.php.

18 {
19 if (!self::$container) {
20 self::setContainer(self::initSspContainer());
21 }
22 return self::$container;
23 }
static setContainer(AbstractContainer $container)
Set a container to use.
$container
Definition: wac.php:13

References SAML2\Compat\ContainerSingleton\$container, $container, and SAML2\Compat\ContainerSingleton\setContainer().

+ Here is the call graph for this function:

◆ initSspContainer()

static SAML2\Compat\ContainerSingleton::initSspContainer ( )
static
Returns
\SAML2\Compat\Ssp\Container

Definition at line 40 of file ContainerSingleton.php.

41 {
42 return new Container();
43 }

◆ setContainer()

static SAML2\Compat\ContainerSingleton::setContainer ( AbstractContainer  $container)
static

Set a container to use.

Parameters
\SAML2\Compat\AbstractContainer$container
Returns
\SAML2\Compat\AbstractContainer

Definition at line 31 of file ContainerSingleton.php.

32 {
34 return $container;
35 }

References SAML2\Compat\ContainerSingleton\$container, and $container.

Referenced by SAML2\Compat\ContainerSingleton\getInstance().

+ Here is the caller graph for this function:

Field Documentation

◆ $container

SAML2\Compat\ContainerSingleton::$container
staticprotected

The documentation for this class was generated from the following file: