Re-organise the src and tests directories

This commit is contained in:
Oliver Davies 2020-06-11 20:21:51 +01:00
parent ae766763b2
commit b238e6655a
26 changed files with 13 additions and 13 deletions

View file

@ -0,0 +1,29 @@
<?php
declare(strict_types=1);
namespace Opdavies\Glassboxx\Request;
use Opdavies\Glassboxx\Config;
use Opdavies\Glassboxx\Traits\UsesConfigTrait;
use Symfony\Component\HttpClient\HttpClient;
use Symfony\Contracts\HttpClient\HttpClientInterface;
abstract class AbstractRequest
{
use UsesConfigTrait;
public const BASE_URL = 'https://server.glassboxx.co.uk';
/** @var HttpClientInterface */
protected $client;
public function __construct(HttpClientInterface $client = null)
{
if (!$client) {
$client = HttpClient::createForBaseUri(self::BASE_URL);
}
$this->client = $client;
}
}