Manager
class Manager mixin QueueManager mixin Queue
Traits
Properties
| static protected object|null | $instance | The current globally used instance. |
from CapsuleManagerTrait |
| protected Container | $container | The container instance. |
from CapsuleManagerTrait |
| protected QueueManager | $manager | The queue manager instance. |
Methods
Setup the default queue configuration options.
Build the queue manager instance.
Register the default connectors that the component ships with.
Get a connection instance from the global manager.
Push a new job onto the queue.
Push an array of jobs onto the queue.
Push a new job onto the queue after (n) seconds.
Get a registered connection instance.
Register a connection with the manager.
Get the queue manager instance.
Pass dynamic instance methods to the manager.
Dynamically pass methods to the default connection.
Details
in
CapsuleManagerTrait at line 25
protected void
setupContainer(Container $container)
Setup the IoC container instance.
in
CapsuleManagerTrait at line 40
void
setAsGlobal()
Make this capsule instance available globally.
Boot or tests only. Swaps the global Capsule instance used by static calls; request-time use races across coroutines.
in
CapsuleManagerTrait at line 48
Container
getContainer()
Get the IoC container instance.
in
CapsuleManagerTrait at line 59
void
setContainer(Container $container)
Set the IoC container instance.
Boot or tests only. Swaps the Capsule container used by this standalone manager; request-time use races across coroutines.
in
CapsuleManagerTrait at line 67
static void
flushState()
Flush all static state.
at line 31
__construct(Container|null $container = null)
Create a new queue capsule manager.
at line 45
protected void
setupDefaultConfiguration()
Setup the default queue configuration options.
at line 53
protected void
setupManager()
Build the queue manager instance.
at line 61
protected void
registerConnectors()
Register the default connectors that the component ships with.
at line 75
static Queue
connection(string|null $connection = null)
Get a connection instance from the global manager.
at line 83
static mixed
push(object|string $job, mixed $data = '', string|null $queue = null, string|null $connection = null)
Push a new job onto the queue.
at line 91
static mixed
bulk(array $jobs, mixed $data = '', string|null $queue = null, string|null $connection = null)
Push an array of jobs onto the queue.
at line 99
static mixed
later(DateInterval|DateTimeInterface|int $delay, object|string $job, mixed $data = '', string|null $queue = null, string|null $connection = null)
Push a new job onto the queue after (n) seconds.
at line 107
Queue
getConnection(string|null $name = null)
Get a registered connection instance.
at line 115
void
addConnection(array $config, string $name = 'default')
Register a connection with the manager.
at line 123
QueueManager
getQueueManager()
Get the queue manager instance.
at line 131
mixed
__call(string $method, array $parameters)
Pass dynamic instance methods to the manager.
at line 139
static mixed
__callStatic(string $method, array $parameters)
Dynamically pass methods to the default connection.