/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Queue/Connectors/FailoverConnector.php
33 строки
703 B
Taylor Otwell
Prototype failover queue (#57341)
13 окт 2025, 19:31
Не верифицирован
13 окт 2025, 19:31
0d6cf86
Код
Авторство
О чём код?
<?php namespace Illuminate\Queue\Connectors; use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Queue\FailoverQueue; use Illuminate\Queue\QueueManager; class FailoverConnector implements ConnectorInterface { /** * Create a new connector instance. */ public function __construct( protected QueueManager $manager, protected Dispatcher $events ) { } /** * Establish a queue connection. * * @return \Illuminate\Contracts\Queue\Queue */ public function connect(array $config) { return new FailoverQueue( $this->manager, $this->events, $config['connections'], ); } }