cfmgrv4 init...4
This commit is contained in:
parent
d8b75a3db6
commit
56836d05fe
@ -25,7 +25,7 @@ class FirewallService extends CloudflareService
|
|||||||
}
|
}
|
||||||
return $this->_parent_entity;
|
return $this->_parent_entity;
|
||||||
}
|
}
|
||||||
private function setParentEntity(mixed $parent_entity): void
|
private function setParentEntity(ZoneEntity $parent_entity): void
|
||||||
{
|
{
|
||||||
$this->_parent_entity = $parent_entity;
|
$this->_parent_entity = $parent_entity;
|
||||||
$account_entity = $this->getAccountModel()->getEntityByPK($this->getParentEntity()->getParent());
|
$account_entity = $this->getAccountModel()->getEntityByPK($this->getParentEntity()->getParent());
|
||||||
|
|||||||
@ -25,7 +25,7 @@ class RecordService extends CloudflareService
|
|||||||
}
|
}
|
||||||
return $this->_parent_entity;
|
return $this->_parent_entity;
|
||||||
}
|
}
|
||||||
private function setParentEntity(mixed $parent_entity): void
|
private function setParentEntity(ZoneEntity $parent_entity): void
|
||||||
{
|
{
|
||||||
$this->_parent_entity = $parent_entity;
|
$this->_parent_entity = $parent_entity;
|
||||||
$account_entity = $this->getAccountModel()->getEntityByPK($this->getParentEntity()->getParent());
|
$account_entity = $this->getAccountModel()->getEntityByPK($this->getParentEntity()->getParent());
|
||||||
|
|||||||
@ -30,7 +30,7 @@ class ZoneService extends CloudflareService
|
|||||||
}
|
}
|
||||||
return $this->_parent_entity;
|
return $this->_parent_entity;
|
||||||
}
|
}
|
||||||
private function setParentEntity(mixed $parent_entity): void
|
private function setParentEntity(AccountEntity $parent_entity): void
|
||||||
{
|
{
|
||||||
$this->_parent_entity = $parent_entity;
|
$this->_parent_entity = $parent_entity;
|
||||||
$auth_entity = $this->getAuthModel()->getEntityByPK(uid: $this->getParentEntity()->getParent());
|
$auth_entity = $this->getAuthModel()->getEntityByPK(uid: $this->getParentEntity()->getParent());
|
||||||
@ -161,7 +161,7 @@ class ZoneService extends CloudflareService
|
|||||||
public function expire(AccountEntity $parent_entity, ZoneEntity $entity): ZoneEntity
|
public function expire(AccountEntity $parent_entity, ZoneEntity $entity): ZoneEntity
|
||||||
{
|
{
|
||||||
$this->setParentEntity($parent_entity);
|
$this->setParentEntity($parent_entity);
|
||||||
$response = $this->getMySocket()->get("accounts/{$entity->getPK()}/registrar/{$entity->getTitle()}");
|
$response = $this->getMySocket()->get("accounts/{$parent_entity->getPK()}/registrar/{$entity->getTitle()}");
|
||||||
$body = json_decode($response->getBody());
|
$body = json_decode($response->getBody());
|
||||||
$formDatas = ['expire_date', $body->result->expires_at];
|
$formDatas = ['expire_date', $body->result->expires_at];
|
||||||
// log_message("debug", var_export($formDatas, true));
|
// log_message("debug", var_export($formDatas, true));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user