mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-16 22:39:52 +08:00
Method 'yii\mail\MessageInterface::compose()' renamed to 'yii\mail\MessageInterface::message()'.
This commit is contained in:
@@ -118,7 +118,7 @@ abstract class BaseMailer extends Component implements MailerInterface, ViewCont
|
||||
* for the configuration format details.
|
||||
* @return MessageInterface message instance.
|
||||
*/
|
||||
public function compose(array $config = [])
|
||||
public function message(array $config = [])
|
||||
{
|
||||
$config = array_merge($this->messageConfig, $config);
|
||||
if (!array_key_exists('class', $config)) {
|
||||
|
||||
@@ -22,7 +22,7 @@ interface MailerInterface
|
||||
* @param array $config message configuration.
|
||||
* @return MessageInterface message instance.
|
||||
*/
|
||||
public function compose(array $config = []);
|
||||
public function message(array $config = []);
|
||||
|
||||
/**
|
||||
* Sends the given email message.
|
||||
|
||||
Reference in New Issue
Block a user