mirror of
https://github.com/elyby/accounts.git
synced 2024-11-26 16:52:02 +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);
|
|
}
|
|
|
|
}
|