From 4ef90f7cf23ba8be6167e780df9aaf5969d11535 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Wed, 29 Dec 2021 01:15:49 +0800 Subject: [PATCH] YD curl request --- .../Modules/Unity/Services/CreatesContract.php | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/app/Classes/Modules/Unity/Services/CreatesContract.php b/app/Classes/Modules/Unity/Services/CreatesContract.php index b9fb1ce8..45252a36 100644 --- a/app/Classes/Modules/Unity/Services/CreatesContract.php +++ b/app/Classes/Modules/Unity/Services/CreatesContract.php @@ -10,26 +10,17 @@ class CreatesContract /** @var GetAccessToken */ private $getAccessToken; - /** @var string */ private $createContract; - /** @var string */ private $contract_hash_id; - /** - * CreatesContract constructor. - * @param GetAccessToken $getAccessToken - * @param string $createContract - * @param string $contract_hash_id - */ - public function __construct(GetAccessToken $getAccessToken, string $createContract, string $contract_hash_id) + public function __construct(GetAccessToken $getAccessToken) { + $this->createContract = Config::get('unity.url').Config::get('unity.endpoint.create_contract'); $this->getAccessToken = $getAccessToken; - $this->createContract = $createContract; - $this->contract_hash_id = $contract_hash_id; + $this->contract_hash_id = Config::get('unity.contract_template_hash_id'); } - public function execute(){ $accessToken=$this->getAccessToken->execute();