chore(payment): NHN KCP와 NICE 결제 플러그인 개발 브랜치 분리
정식 develop에서는 기본 번들 정책에 따라 제거된 결제 플러그인을 별도 개발 브랜치에서 계속 유지보수할 수 있도록 복원한다.
This commit is contained in:
1 parent
49b21e788c
commit
657f546efc
651 files changed
+49118
-20476
No files matched your search
+9
-22
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
// 설치 완료 여부 확인
|
||||
$installedFlagPath = __DIR__.'/../storage/app/g7_installed';
|
||||
$envPath = __DIR__.'/../.env';
|
||||
$installedFlagPath = __DIR__ . '/../storage/app/g7_installed';
|
||||
$envPath = __DIR__ . '/../.env';
|
||||
|
||||
// 설치 확인: g7_installed 파일 또는 .env의 INSTALLER_COMPLETED
|
||||
$isInstalled = file_exists($installedFlagPath) || (
|
||||
@@ -11,11 +11,11 @@ $isInstalled = file_exists($installedFlagPath) || (
|
||||
);
|
||||
|
||||
// 미설치 시 /install로 리다이렉트
|
||||
if (! $isInstalled) {
|
||||
$installUrl = rtrim(dirname($_SERVER['SCRIPT_NAME']), '/').'/install';
|
||||
if (!$isInstalled) {
|
||||
$installUrl = rtrim(dirname($_SERVER['SCRIPT_NAME']), '/') . '/install';
|
||||
echo '<script>
|
||||
alert("G7 최초 사용을 위해 설치 절차가 필요합니다. 설치 화면으로 이동합니다.");
|
||||
window.location.href="'.htmlspecialchars($installUrl).'";
|
||||
window.location.href="' . htmlspecialchars($installUrl) . '";
|
||||
</script>';
|
||||
exit;
|
||||
}
|
||||
@@ -42,7 +42,7 @@ if (file_exists($extensionAutoloadFile)) {
|
||||
$extensionAutoloads = require $extensionAutoloadFile;
|
||||
|
||||
// PSR-4 네임스페이스 등록
|
||||
if (! empty($extensionAutoloads['psr4'])) {
|
||||
if (!empty($extensionAutoloads['psr4'])) {
|
||||
foreach ($extensionAutoloads['psr4'] as $namespace => $paths) {
|
||||
// 경로가 배열인 경우와 문자열인 경우 모두 처리
|
||||
$paths = (array) $paths;
|
||||
@@ -55,21 +55,8 @@ if (file_exists($extensionAutoloadFile)) {
|
||||
}
|
||||
}
|
||||
|
||||
// 확장 소스 classmap 등록 (FQCN → 절대경로).
|
||||
// findFile 이 파일시스템 스캔(is_dir/file_exists stat) 없이 in-memory 맵에서 즉시
|
||||
// 경로를 반환하도록 한다. cold OPcache / 느린 파일시스템 환경의 findFile 비용 제거.
|
||||
// 클래스 로딩은 여전히 lazy — 실제 사용 시점에만 include. classmap 미포함 클래스는
|
||||
// 위 PSR-4 등록으로 폴백(안전망).
|
||||
if (! empty($extensionAutoloads['src_classmap'])) {
|
||||
$absoluteClassmap = [];
|
||||
foreach ($extensionAutoloads['src_classmap'] as $fqcn => $relPath) {
|
||||
$absoluteClassmap[$fqcn] = __DIR__.'/../'.$relPath;
|
||||
}
|
||||
$loader->addClassMap($absoluteClassmap);
|
||||
}
|
||||
|
||||
// Classmap 파일 로드 (module.php, plugin.php)
|
||||
if (! empty($extensionAutoloads['classmap'])) {
|
||||
if (!empty($extensionAutoloads['classmap'])) {
|
||||
foreach ($extensionAutoloads['classmap'] as $file) {
|
||||
$absolutePath = __DIR__.'/../'.$file;
|
||||
if (file_exists($absolutePath)) {
|
||||
@@ -79,7 +66,7 @@ if (file_exists($extensionAutoloadFile)) {
|
||||
}
|
||||
|
||||
// Files 로드 (헬퍼 함수 등)
|
||||
if (! empty($extensionAutoloads['files'])) {
|
||||
if (!empty($extensionAutoloads['files'])) {
|
||||
foreach ($extensionAutoloads['files'] as $file) {
|
||||
$absolutePath = __DIR__.'/../'.$file;
|
||||
if (file_exists($absolutePath)) {
|
||||
@@ -89,7 +76,7 @@ if (file_exists($extensionAutoloadFile)) {
|
||||
}
|
||||
|
||||
// Vendor autoloads 로드 (모듈/플러그인의 composer 의존성)
|
||||
if (! empty($extensionAutoloads['vendor_autoloads'])) {
|
||||
if (!empty($extensionAutoloads['vendor_autoloads'])) {
|
||||
foreach ($extensionAutoloads['vendor_autoloads'] as $vendorAutoload) {
|
||||
$absolutePath = __DIR__.'/../'.$vendorAutoload;
|
||||
if (file_exists($absolutePath)) {
|
||||
|
||||
Reference in new issue
Block a user