Files
pathfinder/app/Lib/Api/GitHubClient.php
Mark Friedrich a5f29ee2eb - NEW "Thera connections" UI module, closed #829
- Upgraded "[_pathfinder_esi_](https://github.com/exodus4d/pathfinder_esi)" Web API client`v1.3.2` → `v2.0.0`
- Fixed a js bug where current active(selected) system becomes deselected after system was dragged on map
- Fixed a js bug where new auto mapped systems (e.g. after jump) were positioned outside current map scroll viewport
- Fixed a js bug where map sync failed after map tabs switch
- Fixed blurry map when map zoom was changed
- Fixed multiple minor JS bugs where map render/update failed
2020-03-02 16:42:36 +01:00

43 lines
969 B
PHP

<?php
/**
* Created by PhpStorm.
* User: Exodus 4D
* Date: 29.01.2019
* Time: 22:23
*/
namespace Exodus4D\Pathfinder\Lib\Api;
use Exodus4D\Pathfinder\Lib\Config;
use Exodus4D\ESI\Client\ApiInterface;
use Exodus4D\ESI\Client\GitHub\GitHub as Client;
/**
* Class GitHubClient
* @package lib\api
*
* @method ApiInterface send(string $requestHandler, ...$handlerParams)
* @method ApiInterface sendBatch(array $configs)
*/
class GitHubClient extends AbstractClient {
/**
* @var string
*/
const CLIENT_NAME = 'gitHubClient';
/**
* @param \Base $f3
* @return ApiInterface|null
*/
protected function getClient(\Base $f3) : ?ApiInterface {
$client = null;
if(class_exists(Client::class)){
$client = new Client(Config::getPathfinderData('api.git_hub'));
}else{
$this->getLogger()->write($this->getMissingClassError(Client::class));
}
return $client;
}
}