-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservices.php.example
More file actions
33 lines (31 loc) · 3.1 KB
/
services.php.example
File metadata and controls
33 lines (31 loc) · 3.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
return [
'freezer' => [
'timer' => 365, // 휴면처리를 할 마지막 로그인 시도로부터의 경과일
'freeze_type' => 'freeze', // "delete"|"freeze" 휴면처리 방식, 삭제 or 분리
'unfreeze_type' => 'auto', // "confirm"|"auto" 복구처리 방식, 이메일인증후 or 로그인시도 즉시
'queue_size' => 5,
'queue' => [
'notify' => 'sync',
'freeze' => 'sync'
],
'email' => [
'notify' => ['subject' => '휴면게정 처리 예정 안내', 'content' => function($user, $type, $config) {
if($config['freeze_type'] === 'freeze') {
return "{$user->getDisplayName()}님, {$user->created_at->format('Y년 m월 d일')}에 가입한 계정이 최근 11개월간 이용되지 않아 1개월 후 휴면 상태로 전환될 예정입니다. <br> 휴면상태로 전환된 후에는 개인정보를 분리하여 보관하게 됩니다. 차후 휴면 상태로 전환된 계정으로 다시 서비스를 이용하기 위해서는 사이트의 <a href=\"{route('login')}\">로그인</a> 페이지에서 다시 로그인을 하시면 됩니다. 감사합니다 ";
} else {
return "{$user->getDisplayName()}님, {$user->created_at->format('Y년 m월 d일')}에 가입한 계정이 최근 11개월간 이용되지 않아 1개월 후 탈퇴 처리될 예정입니다. <br> 탈퇴 처리된 후에는 다시 서비스를 이용하기 위해 사이트의 <a href=\"{route('auth.register')}\">회원가입</a> 페이지에서 새로운 계정으로 가입하여야 합니다. 감사합니다 ";
}
}],
'freeze' => ['subject' => '휴면계정 처리 결과 안내', 'content' => function($user, $type, $config) {
return "{$user->getDisplayName()}님, {$user->created_at->format('Y년 m월 d일')}에 가입한 계정이 최근 1년간 이용되지 않아 휴면 상태로 전환되었습니다. <br> 사이트의 <a href=\"{route('login')}\">로그인</a> 페이지에서 다시 로그인하실 경우 계정이 복구되며, 서비스를 정상적으로 다시 이용할 수 있습니다. 감사합니다 ";
}],
'delete' => ['subject' => '휴면계정 삭제처리 안내', 'content' => function($user, $type, $config) {
return "{$user->getDisplayName()}님, {$user->created_at->format('Y년 m월 d일')}에 가입한 계정이 최근 1년간 이용되지 않아 탈퇴 처리되었습니다. <br> 사이트의 <a href=\"{route('auth.register')}\">회원가입</a> 페이지에서 새로운 계정으로 가입후 서비스를 다시 이용할 수 있습니다. 감사합니다 ";
}],
'unfreeze' => ['subject' => '휴면개정 복구 결과 안내', 'content' => function($user, $type, $config) {
return "{$user->getDisplayName()}님, 장기간 서비스를 이용하지 않아 분리 보관했던 계정 정보가 다시 정상적으로 복구되었습니다. <br> 이제부터 서비스를 다시 이용할 수 있습니다 ";
}],
]
]
];