From 7c1148abd72428f5c8383123a1ac0ce6d2a393e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Fri, 6 Sep 2024 20:56:00 +0900 Subject: [PATCH] Automation init...1 --- app/Controllers/CLI/Crawler.php | 2 +- app/Entities/Mangboard/BoardEntity.php | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/app/Controllers/CLI/Crawler.php b/app/Controllers/CLI/Crawler.php index 5f114c0..603b193 100644 --- a/app/Controllers/CLI/Crawler.php +++ b/app/Controllers/CLI/Crawler.php @@ -49,7 +49,7 @@ class Crawler extends BaseController //미디어관련정보 entity에 넣기 $entity = new BoardEntity(); - $entity->setTitle($nickname); + $entity->title = $nickname; $entity->data_type = "html"; $entity->editor_type = "S"; $entity->content = is_array($mediaTags) ? implode("\n", $mediaTags) : $mediaTags; diff --git a/app/Entities/Mangboard/BoardEntity.php b/app/Entities/Mangboard/BoardEntity.php index 07ee398..3ee21a3 100644 --- a/app/Entities/Mangboard/BoardEntity.php +++ b/app/Entities/Mangboard/BoardEntity.php @@ -19,9 +19,4 @@ class BoardEntity extends CommonEntity return $this->attributes['title']; } //Common Function - - public function setTitle(string $value): void - { - $this->attributes['title'] = $value; - } }