Manager
class Manager mixin QueueManager mixin Queue (View source)
Traits
Properties
| static protected object | $instance | The current globally used instance.  | 
                from CapsuleManagerTrait | 
| protected Container | $container | The container instance.  | 
                from CapsuleManagerTrait | 
| protected QueueManager | $manager | The queue manager instance.  | 
                
Methods
Create a new queue capsule manager.
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 a new 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
        
                    protected        void
    setupContainer(Container $container)
        
    
    Setup the IoC container instance.
        
                            void
    setAsGlobal()
        
    
    Make this capsule instance available globally.
        
                            Container
    getContainer()
        
    
    Get the IoC container instance.
        
                            void
    setContainer(Container $container)
        
    
    Set the IoC container instance.
        
                            
    __construct(Container|null $container = null)
        
    
    Create a new queue capsule manager.
        
                    protected        void
    setupDefaultConfiguration()
        
    
    Setup the default queue configuration options.
        
                    protected        void
    setupManager()
        
    
    Build the queue manager instance.
        
                    protected        void
    registerConnectors()
        
    
    Register the default connectors that the component ships with.
        
                static            Queue
    connection(string|null $connection = null)
        
    
    Get a connection instance from the global manager.
        
                static            mixed
    push(string $job, mixed $data = '', string|null $queue = null, string|null $connection = null)
        
    
    Push a new job onto the queue.
        
                static            mixed
    bulk(array $jobs, mixed $data = '', string|null $queue = null, string|null $connection = null)
        
    
    Push a new an array of jobs onto the queue.
        
                static            mixed
    later(DateTimeInterface|DateInterval|int $delay, string $job, mixed $data = '', string|null $queue = null, string|null $connection = null)
        
    
    Push a new job onto the queue after (n) seconds.
        
                            Queue
    getConnection(string|null $name = null)
        
    
    Get a registered connection instance.
        
                            void
    addConnection(array $config, string $name = 'default')
        
    
    Register a connection with the manager.
        
                            QueueManager
    getQueueManager()
        
    
    Get the queue manager instance.
        
                            mixed
    __call(string $method, array $parameters)
        
    
    Pass dynamic instance methods to the manager.
        
                static            mixed
    __callStatic(string $method, array $parameters)
        
    
    Dynamically pass methods to the default connection.