Added vendor/ directory for Composer's installed files

This commit is contained in:
Ascendings
2015-08-30 12:33:20 -04:00
parent 45df179c49
commit b66a773ed8
1162 changed files with 112457 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php namespace Illuminate\Contracts\Queue;
use InvalidArgumentException;
class EntityNotFoundException extends InvalidArgumentException {
/**
* Create a new exception instance.
*
* @param string $type
* @param mixed $id
* @return void
*/
public function __construct($type, $id)
{
$id = (string) $id;
parent::__construct("Queueable entity [{$type}] not found for ID [{$id}].");
}
}
+14
View File
@@ -0,0 +1,14 @@
<?php namespace Illuminate\Contracts\Queue;
interface EntityResolver {
/**
* Resolve the entity for the given ID.
*
* @param string $type
* @param mixed $id
* @return mixed
*/
public function resolve($type, $id);
}
+13
View File
@@ -0,0 +1,13 @@
<?php namespace Illuminate\Contracts\Queue;
interface Factory {
/**
* Resolve a queue connection instance.
*
* @param string $name
* @return \Illuminate\Contracts\Queue\Queue
*/
public function connection($name = null);
}
+48
View File
@@ -0,0 +1,48 @@
<?php namespace Illuminate\Contracts\Queue;
interface Job {
/**
* Fire the job.
*
* @return void
*/
public function fire();
/**
* Delete the job from the queue.
*
* @return void
*/
public function delete();
/**
* Release the job back into the queue.
*
* @param int $delay
* @return void
*/
public function release($delay = 0);
/**
* Get the number of times the job has been attempted.
*
* @return int
*/
public function attempts();
/**
* Get the name of the queued job class.
*
* @return string
*/
public function getName();
/**
* Get the name of the queue the job belongs to.
*
* @return string
*/
public function getQueue();
}
+29
View File
@@ -0,0 +1,29 @@
<?php namespace Illuminate\Contracts\Queue;
interface Monitor {
/**
* Register a callback to be executed on every iteration through the queue loop.
*
* @param mixed $callback
* @return void
*/
public function looping($callback);
/**
* Register a callback to be executed when a job fails after the maximum amount of retries.
*
* @param mixed $callback
* @return void
*/
public function failing($callback);
/**
* Register a callback to be executed when a daemon queue is stopping.
*
* @param mixed $callback
* @return void
*/
public function stopping($callback);
}
+65
View File
@@ -0,0 +1,65 @@
<?php namespace Illuminate\Contracts\Queue;
interface Queue {
/**
* Push a new job onto the queue.
*
* @param string $job
* @param mixed $data
* @param string $queue
* @return mixed
*/
public function push($job, $data = '', $queue = null);
/**
* Push a raw payload onto the queue.
*
* @param string $payload
* @param string $queue
* @param array $options
* @return mixed
*/
public function pushRaw($payload, $queue = null, array $options = array());
/**
* Push a new job onto the queue after a delay.
*
* @param \DateTime|int $delay
* @param string $job
* @param mixed $data
* @param string $queue
* @return mixed
*/
public function later($delay, $job, $data = '', $queue = null);
/**
* Push a new job onto the queue.
*
* @param string $queue
* @param string $job
* @param mixed $data
* @return mixed
*/
public function pushOn($queue, $job, $data = '');
/**
* Push a new job onto the queue after a delay.
*
* @param string $queue
* @param \DateTime|int $delay
* @param string $job
* @param mixed $data
* @return mixed
*/
public function laterOn($queue, $delay, $job, $data = '');
/**
* Pop the next job off of the queue.
*
* @param string $queue
* @return \Illuminate\Contracts\Queue\Job|null
*/
public function pop($queue = null);
}
+12
View File
@@ -0,0 +1,12 @@
<?php namespace Illuminate\Contracts\Queue;
interface QueueableEntity {
/**
* Get the queueable identity for the entity.
*
* @return mixed
*/
public function getQueueableId();
}
+3
View File
@@ -0,0 +1,3 @@
<?php namespace Illuminate\Contracts\Queue;
interface ShouldBeQueued {}