src/Traits/Auth/AuthManagerTrait.php
public function getAuthManager(): ?AuthManager
    {
        if (!$this->hasAuthManager()) {
            $this->setAuthManager($this->getDefaultAuthManager());
        }
        return $this->authManager;
    }
public function getAuthManager(): ?AuthManager
    {
        if (!$this->hasAuthManager()) {
            $this->setAuthManager($this->getDefaultAuthManager());
        }
        return $this->authManager;
    }
public function getAuthManager ( ) : ? AuthManager { if ( ! $ this -> hasAuthManager ( ) ) { $ this -> setAuthManager ( $ this -> getDefaultAuthManager ( ) ) ; } return $ this -> authManager ; }
Get auth manager

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

@see getDefaultAuthManager()

@return AuthManager|null auth manager or null if none auth manager has been set
Get auth manager