src/Native5/Identity/SecurityUtils.php
public static function getSubject()
    {
        $logger  = $GLOBALS['logger'];
        $app     = $GLOBALS['app'];
        $subject = $app->getSubject();
        $logger->debug('Subject authentication status = '.$subject->isAuthenticated());
        if ($subject === null) {
            $subject = Subject::createBuilder()->build();
            $app->setSubject($subject);
        }

        return $subject;

    }
public static function getSubject()
    {
        $logger  = $GLOBALS['logger'];
        $app     = $GLOBALS['app'];
        $subject = $app->getSubject();
        $logger->debug('Subject authentication status = '.$subject->isAuthenticated());
        if ($subject === null) {
            $subject = Subject::createBuilder()->build();
            $app->setSubject($subject);
        }

        return $subject;

    }
public static function getSubject ( ) { $ logger = $ GLOBALS [ 'logger' ] ; $ app = $ GLOBALS [ 'app' ] ; $ subject = $ app -> getSubject ( ) ; $ logger -> debug ( 'Subject authentication status = ' . $ subject -> isAuthenticated ( ) ) ; if ( $ subject === null ) { $ subject = Subject :: createBuilder ( ) -> build ( ) ; $ app -> setSubject ( $ subject ) ; } return $ subject ; }
getSubject Convienience method to retrieve the subject.
Subject is always retrieved from applicationContext.
If no subject is found, then a new subject is created with default properties.

@static
@access public
@return void
getSubject Convienience method to retrieve the subject . Subject is always retrieved from applicationContext . If no subject is found then a new subject is created with default properties .