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:
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user