From 47415cd336868d5049388b05e940a829f0a07e7f Mon Sep 17 00:00:00 2001 From: 2lives Date: Thu, 25 Apr 2024 12:53:47 -0700 Subject: [PATCH] remove reference to version --- src/SkylabStudio.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/SkylabStudio.php b/src/SkylabStudio.php index 709fdd4..70edafa 100644 --- a/src/SkylabStudio.php +++ b/src/SkylabStudio.php @@ -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;