mirror of
https://github.com/elyby/accounts.git
synced 2024-12-23 22:00:06 +05:30
16 lines
263 B
PHP
16 lines
263 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace console\components;
|
|
|
|
use Yii;
|
|
use yii\queue\ExecEvent;
|
|
|
|
final class ErrorHandler {
|
|
|
|
public function handleQueueError(ExecEvent $event): void {
|
|
Yii::$app->errorHandler->handleException($event->error);
|
|
}
|
|
|
|
}
|