🔧
This commit is contained in:
@@ -44,6 +44,10 @@ class UnsupportedSchemeException extends LogicException
|
||||
'class' => Bridge\Mailjet\Transport\MailjetTransportFactory::class,
|
||||
'package' => 'symfony/mailjet-mailer',
|
||||
],
|
||||
'mailpace' => [
|
||||
'class' => Bridge\MailPace\Transport\MailPaceTransportFactory::class,
|
||||
'package' => 'symfony/mail-pace-mailer',
|
||||
],
|
||||
'mandrill' => [
|
||||
'class' => Bridge\Mailchimp\Transport\MandrillTransportFactory::class,
|
||||
'package' => 'symfony/mailchimp-mailer',
|
||||
|
||||
@@ -129,7 +129,7 @@ abstract class AbstractTransport implements TransportInterface
|
||||
$sleep = (1 / $this->rate) - (microtime(true) - $this->lastSent);
|
||||
if (0 < $sleep) {
|
||||
$this->logger->debug(sprintf('Email transport "%s" sleeps for %.2f seconds', __CLASS__, $sleep));
|
||||
usleep($sleep * 1000000);
|
||||
usleep((int) ($sleep * 1000000));
|
||||
}
|
||||
$this->lastSent = microtime(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user