/var/www/flurhymez/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Plugins
NameSizeModeActions
Decorator/-0755rm
Loggers/-0755rm
Pop/-0755rm
Reporters/-0755rm
AntiFloodPlugin.php30180644editdlrm
BandwidthMonitorPlugin.php33660644editdlrm
DecoratorPlugin.php70420644editdlrm
ImpersonatePlugin.php15930644editdlrm
Logger.php6140644editdlrm
LoggerPlugin.php34360644editdlrm
MessageLogger.php13360644editdlrm
PopBeforeSmtpPlugin.php61910644editdlrm
RedirectingPlugin.php49180644editdlrm
Reporter.php7850644editdlrm
ReporterPlugin.php18220644editdlrm
Sleeper.php4310644editdlrm
ThrottlerPlugin.php46670644editdlrm
Timer.php4260644editdlrm
Edit: /var/www/flurhymez/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Plugins/AntiFloodPlugin.php (3018B)
setThreshold($threshold); $this->setSleepTime($sleep); $this->sleeper = $sleeper; } /** * Set the number of emails to send before restarting. * * @param int $threshold */ public function setThreshold($threshold) { $this->threshold = $threshold; } /** * Get the number of emails to send before restarting. * * @return int */ public function getThreshold() { return $this->threshold; } /** * Set the number of seconds to sleep for during a restart. * * @param int $sleep time */ public function setSleepTime($sleep) { $this->sleep = $sleep; } /** * Get the number of seconds to sleep for during a restart. * * @return int */ public function getSleepTime() { return $this->sleep; } /** * Invoked immediately before the Message is sent. */ public function beforeSendPerformed(Swift_Events_SendEvent $evt) { } /** * Invoked immediately after the Message is sent. */ public function sendPerformed(Swift_Events_SendEvent $evt) { ++$this->counter; if ($this->counter >= $this->threshold) { $transport = $evt->getTransport(); $transport->stop(); if ($this->sleep) { $this->sleep($this->sleep); } $transport->start(); $this->counter = 0; } } /** * Sleep for $seconds. * * @param int $seconds */ public function sleep($seconds) { if (isset($this->sleeper)) { $this->sleeper->sleep($seconds); } else { sleep($seconds); } } }