HEX
Server: LiteSpeed
System: Linux server315.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: globfdxw (6114)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //home/globfdxw/www/wp-content/plugins/give/src/Framework/Http/ServiceProvider.php
<?php

namespace Give\Framework\Http;

use Give\Framework\Http\ConnectServer\Client\ConnectClient;
use Give\ServiceProviders\ServiceProvider as ServiceProviderInterface;

/**
 * @since 2.25.0
 */
class ServiceProvider implements ServiceProviderInterface
{

    /**
     * @inheritDoc
     *
     * @since 3.0.0 Remove slash from GIVE_CONNECT_URL.
     * @since 2.25.0
     */
    public function register()
    {
        give()->singleton(ConnectClient::class, static function () {
            $giveConnectUrl = (defined('GIVE_CONNECT_URL') && GIVE_CONNECT_URL)
                ? untrailingslashit(GIVE_CONNECT_URL)
                : 'https://connect.givewp.com';

            return new ConnectClient($giveConnectUrl);
        });
    }

    /**
     * @inheritDoc
     * @since 2.25.0
     */
    public function boot()
    {
    }
}