master

laravel/framework

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

Factory.php

TLDR

This file contains the Factory interface definition in the Illuminate\Contracts\Queue namespace. It declares a single method, connection(), which resolves a queue connection instance.

Methods

connection($name = null)

This method resolves a queue connection instance. It takes an optional string parameter $name to specify the name of the connection. It returns an instance of the Illuminate\Contracts\Queue\Queue interface.

END

<?php

namespace Illuminate\Contracts\Queue;

interface Factory
{
    /**
     * Resolve a queue connection instance.
     *
     * @param  string|null  $name
     * @return \Illuminate\Contracts\Queue\Queue
     */
    public function connection($name = null);
}