NullConnector.php
TLDR
The NullConnector
class in NullConnector.php
is responsible for establishing a connection to a null queue.
Methods
connect(array $config)
This method takes an array of configuration options, but it doesn't use them. It simply creates and returns a new instance of the NullQueue
class.
Classes
NullConnector
The NullConnector
class implements the ConnectorInterface
and is responsible for establishing a connection to a null queue. It has a single method, connect()
, which returns a new instance of the NullQueue
class.
<?php
namespace Illuminate\Queue\Connectors;
use Illuminate\Queue\NullQueue;
class NullConnector implements ConnectorInterface
{
/**
* Establish a queue connection.
*
* @param array $config
* @return \Illuminate\Contracts\Queue\Queue
*/
public function connect(array $config)
{
return new NullQueue;
}
}