From 91be5052edbf5a3339643f7203f335ac58a37a84 Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Thu, 16 Jan 2025 21:20:16 +0500 Subject: [PATCH] Fix missing `new` keyword in README code example. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 775a3fc..20d636f 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,7 @@ ID folder. Код можно увидеть в адресе console.yandex.cloud > > $translationCompletedListener = \App\Services\TranslationListener::class; > $data = ['contentId' => 1]; -> $afterTranslateDto = \KorElf\TranslateLaravel\DTO\AfterTranslateDto($translationCompletedListener, $data); +> $afterTranslateDto = new \KorElf\TranslateLaravel\DTO\AfterTranslateDto($translationCompletedListener, $data); > > // Отправляем на очередь > \KorElf\TranslateLaravel\Facades\Translate::runJob($params, $afterTranslateDto);