Laravel-Framework/src/Illuminate/Queue
Taylor Otwell d4edbf5f25
Apply fixes from StyleCI (#29062)
2019-07-03 11:39:03 -06:00
..
Capsule All queues support DateInterface, DateInterval and int (#20596) 2017-08-16 08:04:25 -05:00
Connectors [5.6] Passes `token` configuration value to AWS Client (#24746) 2018-07-04 13:20:01 -05:00
Console Merge branch '5.5' 2017-11-26 11:22:23 +00:00
Events formatting 2017-05-08 07:59:04 -05:00
Failed Update docblock to match expectations (#21031) 2017-09-06 14:57:39 +02:00
Jobs Apply fixes from StyleCI (#29062) 2019-07-03 11:39:03 -06:00
BeanstalkdQueue.php All queues support DateInterface, DateInterval and int (#20596) 2017-08-16 08:04:25 -05:00
CallQueuedHandler.php Simplify class_uses_recursive() uses (#24931) 2018-07-22 20:01:28 -05:00
DatabaseQueue.php Apply fixes from StyleCI 2019-04-22 19:10:46 +00:00
FailingJob.php Using `dispatch` instead of `fire` according to \Illuminate\Contracts\Events\Dispatcher (#20446) 2017-08-06 08:50:04 -05:00
InteractsWithQueue.php Apply fixes from StyleCI (#17033) 2016-12-28 15:54:46 -06:00
InvalidPayloadException.php Extract some queue logic. 2016-12-29 10:21:00 -06:00
Listener.php [5.6] Update queue worker memory usage to use the "real" amount of memory used (#25211) 2018-08-15 08:09:27 -05:00
ListenerOptions.php Add missing return docblocks (#22116) 2017-11-17 16:16:23 -06:00
LuaScripts.php Return migrated jobs for customization. 2017-01-20 21:55:37 -06:00
ManuallyFailedException.php Some basic formatting and cleanup surrounding Beanstalk job and contracts. 2016-12-28 17:13:55 -06:00
MaxAttemptsExceededException.php add files 2016-09-07 09:35:19 -05:00
NullQueue.php All queues support DateInterface, DateInterval and int (#20596) 2017-08-16 08:04:25 -05:00
Queue.php remove test that isnt written properly 2018-03-13 20:54:31 -05:00
QueueManager.php Mixin magic methods (#20229) 2017-07-24 08:37:02 -05:00
QueueServiceProvider.php Beginning cleaning queue component. 2016-12-28 16:25:26 -06:00
README.md Update laravel urls with https (#14629) 2016-08-05 09:48:10 -05:00
RedisQueue.php Apply fixes from StyleCI (#29062) 2019-07-03 11:39:03 -06:00
SerializesAndRestoresModelIdentifiers.php fixes an issue where delayed jobs in L5.5 fail to run in L5.6 due to the new relations traits introduced in 230eeef (#23287) 2018-02-25 09:35:05 -06:00
SerializesModels.php use array values 2018-01-23 12:07:08 -06:00
SqsQueue.php fix sqs queue for 7.2 (#22374) 2017-12-09 08:24:58 -06:00
SyncQueue.php All queues support DateInterface, DateInterval and int (#20596) 2017-08-16 08:04:25 -05:00
Worker.php formatting 2018-08-20 08:25:32 -05:00
WorkerOptions.php Add missing return docblocks (#22116) 2017-11-17 16:16:23 -06:00
composer.json [5.6] Symfony 4 Upgrade (#22450) 2017-12-16 08:36:15 -06:00

README.md

Illuminate Queue

The Laravel Queue component provides a unified API across a variety of different queue services. Queues allow you to defer the processing of a time consuming task, such as sending an e-mail, until a later time, thus drastically speeding up the web requests to your application.

Usage Instructions

First, create a new Queue Capsule manager instance. Similar to the "Capsule" provided for the Eloquent ORM, the queue Capsule aims to make configuring the library for usage outside of the Laravel framework as easy as possible.

use Illuminate\Queue\Capsule\Manager as Queue;

$queue = new Queue;

$queue->addConnection([
    'driver' => 'beanstalkd',
    'host' => 'localhost',
    'queue' => 'default',
]);

// Make this Capsule instance available globally via static methods... (optional)
$queue->setAsGlobal();

Once the Capsule instance has been registered. You may use it like so:

// As an instance...
$queue->push('SendEmail', array('message' => $message));

// If setAsGlobal has been called...
Queue::push('SendEmail', array('message' => $message));

For further documentation on using the queue, consult the Laravel framework documentation.