Index: src/SAML2/Compat/ContainerSingleton.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/src/SAML2/Compat/ContainerSingleton.php b/src/SAML2/Compat/ContainerSingleton.php --- a/src/SAML2/Compat/ContainerSingleton.php (revision 93ad2992058161d4fdaafa7ee9678916039e9423) +++ b/src/SAML2/Compat/ContainerSingleton.php (date 1684957204585) @@ -5,6 +5,7 @@ namespace SimpleSAML\SAML2\Compat; use SimpleSAML\Assert\Assert; +use SimpleSAML\Compat\SspContainer; class ContainerSingleton { @@ -17,6 +18,9 @@ */ public static function getInstance(): AbstractContainer { + if (!isset(self::$container)) { + self::$container = self::initSspContainer(); + } Assert::notNull(self::$container, 'No container set.'); return self::$container; } @@ -31,4 +35,13 @@ { self::$container = $container; } + + + /** + * @return \SAML2\Compat\SspContainer + */ + public static function initSspContainer() : SspContainer + { + return new SspContainer(); + } }