Skip to content

Commit

Permalink
remove reference to version
Browse files Browse the repository at this point in the history
  • Loading branch information
2lives committed Apr 25, 2024
1 parent e9731a8 commit 47415cd
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/SkylabStudio.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,14 @@

class SkylabSDKUtil {
protected $SKYLAB_API_URL;
protected $PACKAGE_VERSION;
protected $API_CLIENT;
protected $SkylabStudio;
protected $DEBUG;
private $API_KEY;

public function __construct($api_key, $SkylabStudio, $debug) {
// Load package data// Read the contents of composer.json
$composerJsonContents = file_get_contents(__DIR__ . '/composer.json');

// Decode the JSON content
$composerData = json_decode($composerJsonContents, true);

$this->SKYLAB_API_URL = getenv('SKYLAB_API_URL') ?: 'https://studio.skylabtech.ai:443';
$this->PACKAGE_VERSION = $composerData['version'] ?? null;
$this->API_CLIENT = 'php-' . $this->PACKAGE_VERSION;
$this->API_CLIENT = 'php-sdk';
$this->DEBUG = $debug;
$this->SkylabStudio = $SkylabStudio;
$this->API_KEY = $api_key;
Expand Down

0 comments on commit 47415cd

Please sign in to comment.