From b71bac6fa7feb282fdcc85a1f4b98847a9a035e8 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 28 Nov 2017 16:21:18 +0100 Subject: [PATCH] Remove deprecated setCreatedAt --- Controller.php | 1 - Models/EditorDoc.php | 12 ------------ 2 files changed, 13 deletions(-) diff --git a/Controller.php b/Controller.php index 4336846..9d8bbef 100644 --- a/Controller.php +++ b/Controller.php @@ -243,7 +243,6 @@ class Controller extends ModuleAbstract implements WebInterface $doc->setTitle((string) ($request->getData('title') ?? '')); $doc->setPlain((string) ($request->getData('plain') ?? '')); $doc->setContent((string) ($request->getData('plain') ?? '')); - $doc->setCreatedAt(new \DateTime('now')); $doc->setCreatedBy($request->getHeader()->getAccount()); EditorDocMapper::create($doc); diff --git a/Models/EditorDoc.php b/Models/EditorDoc.php index c4876e4..01d3f5b 100644 --- a/Models/EditorDoc.php +++ b/Models/EditorDoc.php @@ -178,18 +178,6 @@ class EditorDoc implements ArrayableInterface, \JsonSerializable $this->createdBy = $id; } - /** - * @param \DateTime $createdAt - * - * @return void - * - * @since 1.0.0 - */ - public function setCreatedAt(\DateTime $createdAt) - { - $this->createdAt = $createdAt; - } - /** * @return string *