v7.0.0-beta.4 release

This commit is contained in:
HeuJung committed 2026-05-11 11:29:41 +09:00
1 parent 05db17887d
commit 1db039ff34
1545 files changed
+136783 -11634

No files matched your search

+27
View File
@@ -41,6 +41,10 @@ class PluginResource extends BaseApiResource
// pending/bundled 상태
'is_pending' => $this->getValue('is_pending', false),
'is_bundled' => $this->getValue('is_bundled', false),
// 비활성화 메타 (코어 버전 호환성)
'deactivated_reason' => $this->getDeactivatedReasonValue(),
'deactivated_at' => $this->getValue('deactivated_at'),
'incompatible_required_version' => $this->getValue('incompatible_required_version'),
...$this->formatTimestamps(),
...$this->resourceMeta($request),
@@ -116,6 +120,10 @@ class PluginResource extends BaseApiResource
// pending/bundled 상태
'is_pending' => $this->getValue('is_pending', false),
'is_bundled' => $this->getValue('is_bundled', false),
// 비활성화 메타 (코어 버전 호환성)
'deactivated_reason' => $this->getDeactivatedReasonValue(),
'deactivated_at' => $this->getValue('deactivated_at'),
'incompatible_required_version' => $this->getValue('incompatible_required_version'),
// 타임스탬프
'created_at' => $this->getValue('created_at'),
'updated_at' => $this->getValue('updated_at'),
@@ -151,6 +159,25 @@ class PluginResource extends BaseApiResource
]);
}
/**
* deactivated_reason 을 항상 string|null 로 직렬화합니다.
*
* Eloquent enum cast 가 적용되어 있어도 배열 합성 모델은 raw value 를 줄 수 있어
* 두 경우 모두 처리합니다.
*
* @return string|null
*/
protected function getDeactivatedReasonValue(): ?string
{
$value = $this->getValue('deactivated_reason');
if ($value instanceof \BackedEnum) {
return $value->value;
}
return $value;
}
/**
* 의존성 상태를 확인하여 반환합니다.
*