diff --git a/config/api_platform/CommandTaskSchedule.yaml b/config/api_platform/CommandTaskSchedule.yaml new file mode 100644 index 0000000..e69de29 diff --git a/src/Command/TestCommand.php b/src/Command/TestCommand.php new file mode 100644 index 0000000..285bee9 --- /dev/null +++ b/src/Command/TestCommand.php @@ -0,0 +1,21 @@ + 'Client not found'], Response::HTTP_NOT_FOUND); } - $updateAt = (new \DateTime())->setTimestamp((int)$data['timestamp']); - - $client->setUpdatedAt($updateAt); + $client->setUpdatedAt(new \DateTime()); $this->entityManager->persist($client); $this->entityManager->flush(); } diff --git a/src/Dto/Input/CommandTaskScheduleInput.php b/src/Dto/Input/CommandTaskScheduleInput.php new file mode 100644 index 0000000..ea8b688 --- /dev/null +++ b/src/Dto/Input/CommandTaskScheduleInput.php @@ -0,0 +1,8 @@ +