master

laravel/framework

Last updated at: 29/12/2023 09:23

SyncConnector.php

TLDR

The SyncConnector class is a part of the Illuminate\Queue\Connectors namespace in the Demo Projects project. It implements the ConnectorInterface and provides a connect() method for establishing a queue connection.

Methods

connect

This method takes an array of configuration options as a parameter and returns an instance of the SyncQueue class. It is responsible for establishing a queue connection.

Classes

SyncConnector

The SyncConnector class is responsible for connecting to a queue using the SyncQueue implementation. It is a part of the Illuminate\Queue\Connectors namespace.

<?php

namespace Illuminate\Queue\Connectors;

use Illuminate\Queue\SyncQueue;

class SyncConnector implements ConnectorInterface
{
    /**
     * Establish a queue connection.
     *
     * @param  array  $config
     * @return \Illuminate\Contracts\Queue\Queue
     */
    public function connect(array $config)
    {
        return new SyncQueue;
    }
}