ConnectorInterface.php
TLDR
This file defines an interface called ConnectorInterface
under the Illuminate\Queue\Connectors
namespace. It contains a single method connect()
that is responsible for establishing a queue connection.
Methods
connect(array $config)
This method takes an array parameter $config
and returns an instance of \Illuminate\Contracts\Queue\Queue
. It is responsible for establishing a queue connection.
Classes
None
<?php
namespace Illuminate\Queue\Connectors;
interface ConnectorInterface
{
/**
* Establish a queue connection.
*
* @param array $config
* @return \Illuminate\Contracts\Queue\Queue
*/
public function connect(array $config);
}