改名
This commit is contained in:
@@ -96,7 +96,7 @@ abstract class Callback extends Application
|
|||||||
$mail->SMTPAuth = true; // Enable SMTP authentication
|
$mail->SMTPAuth = true; // Enable SMTP authentication
|
||||||
$mail->Username = Config::get('email.username'); // SMTP username
|
$mail->Username = Config::get('email.username'); // SMTP username
|
||||||
$mail->Password = Config::get('email.password'); // SMTP password
|
$mail->Password = Config::get('email.password'); // SMTP password
|
||||||
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; // Enable TLS encryption; `PHPMailer::ENCRYPTION_SMTPS` encouraged
|
$mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; // Enable TLS encryption; `PHPMailer::ENCRYPTION_SMTPS` encouraged
|
||||||
$mail->Port = Config::get('email.port'); // TCP port to connect to, use 465 for `PHPMailer::ENCRYPTION_SMTPS` above
|
$mail->Port = Config::get('email.port'); // TCP port to connect to, use 465 for `PHPMailer::ENCRYPTION_SMTPS` above
|
||||||
$mail->setFrom(Config::get('email.send.address'), Config::get('email.send.nickname'));
|
$mail->setFrom(Config::get('email.send.address'), Config::get('email.send.nickname'));
|
||||||
return $mail;
|
return $mail;
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ class OnShutdown extends Callback
|
|||||||
*/
|
*/
|
||||||
public function onHandler(Server $server)
|
public function onHandler(Server $server)
|
||||||
{
|
{
|
||||||
// $this->system_mail('server shutdown~');
|
$this->system_mail('server shutdown~');
|
||||||
$event = Snowflake::get()->getEvent();
|
$event = Snowflake::get()->getEvent();
|
||||||
if (!$event->exists(Event::SERVER_SHUTDOWN)) {
|
if (!$event->exists(Event::SERVER_SHUTDOWN)) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -27,12 +27,12 @@ class OnWorkerError extends Callback
|
|||||||
if (!Config::has('email')) {
|
if (!Config::has('email')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// $this->system_mail(print_r([
|
$this->system_mail(print_r([
|
||||||
// '$worker_pid' => $worker_pid,
|
'$worker_pid' => $worker_pid,
|
||||||
// '$worker_id' => $worker_id,
|
'$worker_id' => $worker_id,
|
||||||
// '$exit_code' => $exit_code,
|
'$exit_code' => $exit_code,
|
||||||
// '$signal' => $signal,
|
'$signal' => $signal,
|
||||||
// ], true));
|
], true));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,8 +61,6 @@ class ServerInotify extends Process
|
|||||||
*/
|
*/
|
||||||
public function tick()
|
public function tick()
|
||||||
{
|
{
|
||||||
$this->debug('file modify listener.');
|
|
||||||
|
|
||||||
$this->loadByDir(APP_PATH . 'app', true);
|
$this->loadByDir(APP_PATH . 'app', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user