HEX
Server: LiteSpeed
System: Linux node612.namehero.net 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: dfwparty (1186)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: /home/dfwparty/public_html/wp-content/mu-plugins/wp-toolkit/Common/Clients/HttpClientFactory.php
<?php
// Copyright 1999-2026. WebPros International GmbH. All rights reserved.

namespace Webpros\WptkWpPlugin\WpToolkit\Common\Clients;

use Webpros\WptkWpPlugin\WpToolkit\Common\Services\ApiTokenParser;

class HttpClientFactory implements HttpClientFactoryInterface
{
    /**
     * @return HttpClientInterface
     */
    public function getClient()
    {
        $apiTokenParser = new ApiTokenParser();
        return new PleskHttpClient($apiTokenParser->parse(ApiTokenParser::getTokenFromConfig()));
    }
}