Upgrade ely/email-renderer and some other non-breaking dependencies

This commit is contained in:
ErickSkrauch
2019-05-14 01:13:07 +03:00
parent 73988855c4
commit 5dacd66fb7
3 changed files with 23 additions and 21 deletions

View File

@@ -1,13 +1,15 @@
<?php
declare(strict_types=1);
namespace console\components;
use Swift_TransportException;
use Yii;
use yii\queue\ErrorEvent;
use yii\queue\ExecEvent;
class ErrorHandler {
public function handleQueueError(ErrorEvent $error): void {
public function handleQueueError(ExecEvent $error): void {
$exception = $error->error;
if ($exception instanceof Swift_TransportException) {
Yii::warning($exception);