]> source.dussan.org Git - nextcloud-server.git/commitdiff
update usages of AutoSubmittedValue to AutoSubmitted::VALUE_
authorBennet Becker <dev@bennet.cc>
Tue, 3 Jan 2023 14:28:43 +0000 (15:28 +0100)
committerBennet Becker <dev@bennet.cc>
Tue, 3 Jan 2023 14:28:43 +0000 (15:28 +0100)
Signed-off-by: Bennet Becker <dev@bennet.cc>
apps/dav/lib/CalDAV/Reminder/NotificationProvider/EmailProvider.php
apps/settings/lib/Mailer/NewUserMailHelper.php
apps/settings/tests/Mailer/NewUserMailHelperTest.php

index 23e8ffc7e99755307a48d14b6b01037b4443f785..1cabf96489fcf4e6a1e54b8223ba1a3002840c7d 100644 (file)
@@ -36,7 +36,7 @@ use OCP\IConfig;
 use OCP\IL10N;
 use OCP\IURLGenerator;
 use OCP\L10N\IFactory as L10NFactory;
-use OCP\Mail\AutoSubmittedValue;
+use OCP\Mail\Headers\AutoSubmitted;
 use OCP\Mail\IEMailTemplate;
 use OCP\Mail\IMailer;
 use OCP\IUser;
@@ -132,7 +132,7 @@ class EmailProvider extends AbstractProvider {
                                }
                                $message->setTo([$emailAddress]);
                                $message->useTemplate($template);
-                               $message->setAutoSubmitted(AutoSubmittedValue::AUTO_GENERATED);
+                               $message->setAutoSubmitted(AutoSubmitted::VALUE_AUTO_GENERATED);
 
                                try {
                                        $failed = $this->mailer->send($message);
index 5da1082455ec2f78f44b499a378e2948bc82bc2d..bfa34e1746a04353a8a306e19e6e8ccba94b8707 100644 (file)
@@ -35,7 +35,7 @@ use OCP\IConfig;
 use OCP\IURLGenerator;
 use OCP\IUser;
 use OCP\L10N\IFactory;
-use OCP\Mail\AutoSubmittedValue;
+use OCP\Mail\Header\AutoSubmitted;
 use OCP\Mail\IEMailTemplate;
 use OCP\Mail\IMailer;
 use OCP\Security\ICrypto;
@@ -182,7 +182,7 @@ class NewUserMailHelper {
                $message->setTo([$email => $user->getDisplayName()]);
                $message->setFrom([$this->fromAddress => $this->themingDefaults->getName()]);
                $message->useTemplate($emailTemplate);
-               $message->setAutoSubmitted(AutoSubmittedValue::AUTO_GENERATED);
+               $message->setAutoSubmitted(AutoSubmitted::VALUE_AUTO_GENERATED);
                $this->mailer->send($message);
        }
 }
index efb7ca9a29bb595169cae550ec8ea38dcc6c0c08..5c7d182d43618430da128a758dab936153df55ed 100644 (file)
@@ -42,7 +42,7 @@ use OCP\IL10N;
 use OCP\IURLGenerator;
 use OCP\IUser;
 use OCP\L10N\IFactory;
-use OCP\Mail\AutoSubmittedValue;
+use OCP\Mail\Headers\AutoSubmitted;
 use OCP\Mail\IEMailTemplate;
 use OCP\Mail\IMailer;
 use OCP\Security\ICrypto;
@@ -871,7 +871,7 @@ EOF;
                $message
                        ->expects($this->once())
                        ->method('setAutoSubmitted')
-                       ->with(AutoSubmittedValue::AUTO_GENERATED);
+                       ->with(AutoSubmitted::VALUE_AUTO_GENERATED);
                $this->defaults
                        ->expects($this->once())
                        ->method('getName')