v7.0.0-beta.1 release

This commit is contained in:
HeuJung committed 2026-04-01 10:30:52 +09:00
commit 6595fd0eb5
3967 files changed
+1875383

No files matched your search

View File
Whitespace-only changes.
@@ -0,0 +1,22 @@
<?php
namespace App\Exceptions;
use Exception;
/**
* 관리자 계정 삭제 시도 시 발생하는 예외
*
* 관리자 역할을 가진 계정은 시스템에서 삭제할 수 없으며,
* 이 예외는 삭제 시도를 방지합니다.
*/
class CannotDeleteAdminException extends Exception
{
/**
* 관리자 계정 삭제 시도 시 예외를 생성합니다.
*/
public function __construct()
{
parent::__construct(__('user.delete_admin_forbidden'));
}
}
@@ -0,0 +1,22 @@
<?php
namespace App\Exceptions;
use Exception;
/**
* 슈퍼 관리자 삭제 시도 시 발생하는 예외
*
* 슈퍼 관리자는 시스템에서 삭제할 수 없으며,
* 이 예외는 삭제 시도를 방지합니다.
*/
class CannotDeleteSuperAdminException extends Exception
{
/**
* 슈퍼 관리자 삭제 시도 시 예외를 생성합니다.
*/
public function __construct()
{
parent::__construct(__('exceptions.cannot_delete_super_admin'));
}
}
@@ -0,0 +1,34 @@
<?php
namespace App\Exceptions;
use Exception;
class CircularReferenceException extends Exception
{
/**
* 순환 참조 스택
*/
private array $stack;
/**
* CircularReferenceException 생성자
*/
public function __construct(array $stack, string $currentLayout)
{
$this->stack = $stack;
$stackTrace = implode(' → ', $stack) . " → {$currentLayout}";
$message = __('exceptions.circular_reference', ['trace' => $stackTrace]);
parent::__construct($message);
}
/**
* 순환 참조 스택 반환
*/
public function getStack(): array
{
return $this->stack;
}
}
@@ -0,0 +1,16 @@
<?php
namespace App\Exceptions;
use Exception;
class ExtensionOwnedRoleDeleteException extends Exception
{
/**
* 확장이 소유한 역할 삭제 시도 시 예외를 생성합니다.
*/
public function __construct()
{
parent::__construct(__('role.errors.extension_owned_role_delete'));
}
}
+32
View File
@@ -0,0 +1,32 @@
<?php
namespace App\Exceptions;
use Exception;
class LayoutIncludeException extends Exception
{
private ?string $includePath = null;
private ?array $includeStack = null;
public function __construct(
string $message,
?string $includePath = null,
?array $includeStack = null
) {
$this->includePath = $includePath;
$this->includeStack = $includeStack;
parent::__construct($message);
}
public function getIncludePath(): ?string
{
return $this->includePath;
}
public function getIncludeStack(): ?array
{
return $this->includeStack;
}
}
@@ -0,0 +1,16 @@
<?php
namespace App\Exceptions;
use Exception;
class SystemRoleDeleteException extends Exception
{
/**
* 시스템 역할 삭제 시도 시 예외를 생성합니다.
*/
public function __construct()
{
parent::__construct(__('role.errors.system_role_delete'));
}
}
@@ -0,0 +1,47 @@
<?php
namespace App\Exceptions;
use Exception;
class TemplateFileCopyException extends Exception
{
private string $sourcePath;
private string $destinationPath;
private ?string $context;
public function __construct(string $sourcePath, string $destinationPath, ?string $context = null)
{
$this->sourcePath = $sourcePath;
$this->destinationPath = $destinationPath;
$this->context = $context;
// 다국어 함수 사용 (파라미터 치환)
$errorMessage = __('exceptions.template_file_copy_failed', [
'source' => $sourcePath,
'destination' => $destinationPath,
]);
// Context 정보가 있으면 메시지에 추가
if ($context) {
$errorMessage .= " ({$context})";
}
parent::__construct($errorMessage);
}
public function getSourcePath(): string
{
return $this->sourcePath;
}
public function getDestinationPath(): string
{
return $this->destinationPath;
}
public function getContext(): ?string
{
return $this->context;
}
}
@@ -0,0 +1,16 @@
<?php
namespace App\Exceptions;
use Exception;
class TemplateNotFoundException extends Exception
{
/**
* 활성화된 템플릿을 찾을 수 없을 때 예외를 생성합니다.
*/
public function __construct(string $type)
{
parent::__construct("Active template not found for type: {$type}");
}
}