mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-26 16:04:23 +00:00
YD curl request
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user