src/Traits/Session/SessionManagerTrait.php
public function getSessionManager(): ?SessionManager
    {
        if (!$this->hasSessionManager()) {
            $this->setSessionManager($this->getDefaultSessionManager());
        }
        return $this->sessionManager;
    }
public function getSessionManager(): ?SessionManager
    {
        if (!$this->hasSessionManager()) {
            $this->setSessionManager($this->getDefaultSessionManager());
        }
        return $this->sessionManager;
    }
public function getSessionManager ( ) : ? SessionManager { if ( ! $ this -> hasSessionManager ( ) ) { $ this -> setSessionManager ( $ this -> getDefaultSessionManager ( ) ) ; } return $ this -> sessionManager ; }
Get session manager

If no session manager has been set, this method will
set and return a default session manager, if any such
value is available

@see getDefaultSessionManager()

@return SessionManager|null session manager or null if none session manager has been set
Get session manager