public static function getDebugBar()
    {
        if (self::$debugbar !== null) {
            return self::$debugbar;
        }

        $reasons = self::disabledCriteria();
        if (!empty($reasons)) {
            self::$debugbar = false; // no need to check again
            return;
        }

        self::initDebugBar();

        if (!self::$debugbar) {
            throw new Exception("Failed to initialize the DebugBar");
        }

        return self::$debugbar;
    }
public static function getDebugBar()
    {
        if (self::$debugbar !== null) {
            return self::$debugbar;
        }

        $reasons = self::disabledCriteria();
        if (!empty($reasons)) {
            self::$debugbar = false; // no need to check again
            return;
        }

        self::initDebugBar();

        if (!self::$debugbar) {
            throw new Exception("Failed to initialize the DebugBar");
        }

        return self::$debugbar;
    }
public static function getDebugBar ( ) { if ( self :: $ debugbar !== null ) { return self :: $ debugbar ; } $ reasons = self :: disabledCriteria ( ) ; if ( ! empty ( $ reasons ) ) { self :: $ debugbar = false ; // no need to check again return ; } self :: initDebugBar ( ) ; if ( ! self :: $ debugbar ) { throw new Exception ( "Failed to initialize the DebugBar" ) ; } return self :: $ debugbar ; }
Get the Debug Bar instance
@throws Exception
@global array $databaseConfig
@return BaseDebugBar
Get the Debug Bar instance