src/MCoreApplication.php
public static function getApplicationDirPath():?MApplicationDir
    {
        if (self::isCliApp()) {
            return self::$APPLICATION_DIR_PATH;
        }

        return MSession::get(MCoreApplication::APPLICATION_DIR_PATH);
    }
public static function getApplicationDirPath():?MApplicationDir
    {
        if (self::isCliApp()) {
            return self::$APPLICATION_DIR_PATH;
        }

        return MSession::get(MCoreApplication::APPLICATION_DIR_PATH);
    }
public static function getApplicationDirPath ( ) : ? MApplicationDir { if ( self :: isCliApp ( ) ) { return self :: $ APPLICATION_DIR_PATH ; } return MSession :: get ( MCoreApplication :: APPLICATION_DIR_PATH ) ; }
Return the root path of the project.

@return MApplicationDir|null
Return the root path of the project .