/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Queue/Console/Concerns/ParsesQueue.php
22 строки
493 B
Rodrigo
simplify ParsesQueue trait (#57886)
24 ноя 2025, 21:20
Не верифицирован
24 ноя 2025, 21:20
6df4e2a
Код
Авторство
О чём код?
<?php namespace Illuminate\Queue\Console\Concerns; trait ParsesQueue { /** * Parse the queue argument into connection and queue name. * * @param string $queue * @return array{string, string} */ protected function parseQueue($queue) { [$connection, $queue] = array_pad(explode(':', $queue, 2), -2, null); return [ $connection ?? $this->laravel['config']['queue.default'], $queue ?: 'default', ]; } }