diff options
author | Joas Schilling <coding@schilljs.com> | 2017-09-04 15:07:19 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-09-04 15:07:41 +0200 |
commit | 6dbb64c4a2748467a61e5ed7821ac6526c86a093 (patch) | |
tree | 49e8ffa545292f5d40f9aabd1b229756452d6b98 /lib/public | |
parent | 95ecab03568f2865b166a12156709d8271f7c9be (diff) | |
download | nextcloud-server-6dbb64c4a2748467a61e5ed7821ac6526c86a093.tar.gz nextcloud-server-6dbb64c4a2748467a61e5ed7821ac6526c86a093.zip |
Merge setMetaData into constructor
This ensures that the meta data is set in the beginning
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Mail/IEMailTemplate.php | 6 | ||||
-rw-r--r-- | lib/public/Mail/IMailer.php | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/lib/public/Mail/IEMailTemplate.php b/lib/public/Mail/IEMailTemplate.php index 2ff4a486f75..6c71c0c0473 100644 --- a/lib/public/Mail/IEMailTemplate.php +++ b/lib/public/Mail/IEMailTemplate.php @@ -51,12 +51,6 @@ namespace OCP\Mail; * @since 12.0.0 */ interface IEMailTemplate { - /** - * Set meta data of an email - * - * @since 12.0.3 - */ - public function setMetaData($emailId, array $data = []); /** * Adds a header to the email diff --git a/lib/public/Mail/IMailer.php b/lib/public/Mail/IMailer.php index af16a8a239a..c283d346745 100644 --- a/lib/public/Mail/IMailer.php +++ b/lib/public/Mail/IMailer.php @@ -57,10 +57,12 @@ interface IMailer { /** * Creates a new email template object * + * @param string $emailId + * @param array $data * @return IEMailTemplate - * @since 12.0.0 + * @since 12.0.0 Parameters added in 12.0.3 */ - public function createEMailTemplate(); + public function createEMailTemplate($emailId, array $data = []); /** * Send the specified message. Also sets the from address to the value defined in config.php |