Fix missing new keyword in README code example.

This commit is contained in:
Leonid Nikitin 2025-01-16 21:20:16 +05:00
parent e63ded1708
commit 91be5052ed
Signed by: kor-elf
GPG Key ID: 3C0F720C170F6E1D

View File

@ -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);