Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
30 lines (26 sloc)
691 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Illuminate\Contracts\Bus; | |
interface QueueingDispatcher extends Dispatcher | |
{ | |
/** | |
* Attempt to find the batch with the given ID. | |
* | |
* @param string $batchId | |
* @return \Illuminate\Bus\Batch|null | |
*/ | |
public function findBatch(string $batchId); | |
/** | |
* Create a new batch of queueable jobs. | |
* | |
* @param \Illuminate\Support\Collection|array $jobs | |
* @return \Illuminate\Bus\PendingBatch | |
*/ | |
public function batch($jobs); | |
/** | |
* Dispatch a command to its appropriate handler behind a queue. | |
* | |
* @param mixed $command | |
* @return mixed | |
*/ | |
public function dispatchToQueue($command); | |
} |