Remove fromMailAddress from MailSettingsController
Was removed in https://github.com/nextcloud/server/pull/4379 (0a54d5a
) and https://github.com/nextcloud/server/pull/4380 (bae64e8
) Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
bcf1668cc8
commit
d18d323f21
2 changed files with 1 additions and 10 deletions
|
@ -152,10 +152,6 @@ class DIContainer extends SimpleContainer implements IAppContainer {
|
|||
return $c->query('ServerContainer')->getWebRoot();
|
||||
});
|
||||
|
||||
$this->registerService('fromMailAddress', function() {
|
||||
return Util::getDefaultEmailAddress('no-reply');
|
||||
});
|
||||
|
||||
$this->registerService('OC_Defaults', function ($c) {
|
||||
return $c->getServer()->getThemingDefaults();
|
||||
});
|
||||
|
|
|
@ -47,8 +47,6 @@ class MailSettingsController extends Controller {
|
|||
private $userSession;
|
||||
/** @var IMailer */
|
||||
private $mailer;
|
||||
/** @var string */
|
||||
private $defaultMailAddress;
|
||||
|
||||
/**
|
||||
* @param string $appName
|
||||
|
@ -57,21 +55,18 @@ class MailSettingsController extends Controller {
|
|||
* @param IConfig $config
|
||||
* @param IUserSession $userSession
|
||||
* @param IMailer $mailer
|
||||
* @param string $fromMailAddress
|
||||
*/
|
||||
public function __construct($appName,
|
||||
IRequest $request,
|
||||
IL10N $l10n,
|
||||
IConfig $config,
|
||||
IUserSession $userSession,
|
||||
IMailer $mailer,
|
||||
$fromMailAddress) {
|
||||
IMailer $mailer) {
|
||||
parent::__construct($appName, $request);
|
||||
$this->l10n = $l10n;
|
||||
$this->config = $config;
|
||||
$this->userSession = $userSession;
|
||||
$this->mailer = $mailer;
|
||||
$this->defaultMailAddress = $fromMailAddress;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue