feat: DTO Convert 인자 버그 수정, DateTimeConverter 확장

- DateTimeConverter에 목표 Timezone 설정
This commit is contained in:
2022-05-28 02:50:21 +09:00
parent c46128ed3e
commit 08eae297fd
3 changed files with 97 additions and 4 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ class Convert
public function __construct(
public readonly array $targetTypes,
public readonly string $converterType,
array ...$args
...$args
) {
if(!is_subclass_of($converterType, \sammo\DTO\Converter\Converter::class)){
throw new \Exception("$converterType is not a subclass of \sammo\DTO\Converter\Converter");