/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Queue/BackgroundQueue.php
25 строк
561 B
Quynh Nguyen
Remove unnecessary imports from BackgroundQueue and DeferredQueue. (#57699)
07 ноя 2025, 19:14
Не верифицирован
07 ноя 2025, 19:14
32650e9
Код
Авторство
О чём код?
<?php namespace Illuminate\Queue; use Illuminate\Support\Facades\Concurrency; class BackgroundQueue extends SyncQueue { /** * Push a new job onto the queue. * * @param string $job * @param mixed $data * @param string|null $queue * @return mixed * * @throws \Throwable */ public function push($job, $data = '', $queue = null) { Concurrency::driver('process')->defer( fn () => \Illuminate\Support\Facades\Queue::connection('sync')->push($job, $data, $queue) ); } }