1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-31 20:11:54 +02:00

[ticket/17135] Refactor messenger code to services [ci skip]

PHPBB3-17135
This commit is contained in:
rxu
2023-06-06 12:54:15 +07:00
parent df5b7fd66e
commit 5be1f5d5c9
20 changed files with 296 additions and 236 deletions

View File

@@ -82,6 +82,16 @@ class email extends base
/** @var Symfony\Component\Mailer\Transport */
protected $transport;
/**
* Get messenger method id
*
* @return int
*/
public function get_id()
{
return NOTIFY_EMAIL;
}
/**
* Check if the messenger method is enabled
* @return void
@@ -286,19 +296,6 @@ class email extends base
parent::error($type, $msg);
}
/**
* Save message data to the messenger file queue
* @return void
*/
public function save_queue()
{
if ($this->config['email_package_size'] && $this->use_queue && !empty($this->queue))
{
$this->queue->save();
return;
}
}
/**
* Detect proper Header class method to add header
*