ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ContainerSingleton.php
Go to the documentation of this file.
1 <?php
2 
3 namespace SAML2\Compat;
4 
6 
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  {
34  return $container;
35  }
36 
40  public static function initSspContainer()
41  {
42  return new Container();
43  }
44 }
static setContainer(AbstractContainer $container)
Set a container to use.
$container
Definition: wac.php:13