model === null) { $this->model = new FirewallModel(); } return $this->model; } protected function getService(): FirewallService { if ($this->service === null) { $this->service = new FirewallService(); } return $this->service; } //Trigger작업 protected function webhook_process(): void { parent::webhook_process(); // //자신정보정의 // $this->entity = $this->getModel()->getEntityByPK($uid); // if ($this->entity === null) { // throw new \Exception("{$uid} 정보를 찾을수 없습니다."); // } // //부모데이터정의 // $this->_zone_entity = $this->getZoneModel()->getEntityByPK($this->entity->getParent()); // //Socket처리 // $this->entity = $this->getMyLibrary()->sync($this->entity); log_message("notice", message: "Firewall Trigger 작업완료"); } public function webhook(): ResponseInterface { return $this->webhook_procedure(); } }