<?php
namespace IlluminateQueueConnectors;
use IlluminateQueueBackgroundQueue;
class BackgroundConnector implements ConnectorInterface
{
/**
* Establish a queue connection.
*
* @return IlluminateContractsQueueQueue
*/
public function connect(array $config)
{
return new BackgroundQueue($config['after_commit'] ?? null);
}
}