mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Upgrade ely/email-renderer and some other non-breaking dependencies
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user