src/SessionFlash.php
static function singleton(Session $session = null)
        {
            if (self::$singleton == null) {
                self::$singleton = new SessionFlash($session);
            }

            return self::$singleton;
        }
static function singleton(Session $session = null)
        {
            if (self::$singleton == null) {
                self::$singleton = new SessionFlash($session);
            }

            return self::$singleton;
        }
static function singleton ( Session $ session = null ) { if ( self :: $ singleton == null ) { self :: $ singleton = new SessionFlash ( $ session ) ; } return self :: $ singleton ; }
Calling this class in a singleton way.

@param Session|null $session
@return SessionFlash
Calling this class in a singleton way .