laravel horizon

This commit is contained in:
2019-05-14 04:39:55 +00:00
parent b20bde1f56
commit 34e42d3846
464 changed files with 57914 additions and 69 deletions
@@ -0,0 +1,31 @@
<?php
namespace Laravel\Horizon\Contracts;
interface HorizonCommandQueue
{
/**
* Push a command onto a queue.
*
* @param string $name
* @param string $command
* @param array $options
*/
public function push($name, $command, array $options = []);
/**
* Get the pending commands for a given queue name.
*
* @param string $name
* @return array
*/
public function pending($name);
/**
* Flush the command queue for a given queue name.
*
* @param string $name
* @return void
*/
public function flush($name);
}