ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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

Definition at line 17 of file ContainerSingleton.php.

References $container.

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

◆ initSspContainer()

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

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

Definition at line 31 of file ContainerSingleton.php.

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

32  {
34  return $container;
35  }
$container
Definition: wac.php:13

Field Documentation

◆ $container

SAML2\Compat\ContainerSingleton::$container
staticprotected

Definition at line 12 of file ContainerSingleton.php.

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


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