protected function createMessage($body)
    {
        return $this->mailer->compose('nfy/message', ['message' => $body])
            ->setSubject(Yii::t('app', 'Notification from {app}', ['app' => Yii::$app->name]));
    }
protected function createMessage($body)
    {
        return $this->mailer->compose('nfy/message', ['message' => $body])
            ->setSubject(Yii::t('app', 'Notification from {app}', ['app' => Yii::$app->name]));
    }
protected function createMessage ( $ body ) { return $ this -> mailer -> compose ( 'nfy/message' , [ 'message' => $ body ] ) -> setSubject ( Yii :: t ( 'app' , 'Notification from {app}' , [ 'app' => Yii :: $ app -> name ] ) ) ; }
Creates an instance of a Message.
This method may be overriden in extending classes.
@param  string    $body message body
@return MessageInterface
Creates an instance of a Message . This method may be overriden in extending classes .