v1.0.2 2018-08-08 08:19 UTC

This package is auto-updated.

Last update: 2024-09-15 01:42:38 UTC


README

Build Status Coverage Status

队列

组件提供跨多种不同队列服务的统一API。队列允许您推迟处理耗时任务,例如发送电子邮件,直到稍后时间,从而显著加快对应用程序的Web请求。

使用方法

请注意,EventsManager服务必须在依赖注入容器中注册,并且必须返回\Phalcon\Events\Manager接口实例

在依赖注入中


use TimurFlush\Queue\Adapter\Beanstalk as BeanstalkQueue;

$di->setShared('queue', function() {
    /* By default, Beanstalk uses IP 127.0.0.1 and Port 11300, 
     * but you can easily override them by passing new values 
     * to the constructor.
     */
    return new BeanstalkQueue(
        [
            'host' => '127.0.0.1',
            'port' => '11300',
            //'persistent' => true, //if necessary  
        ]
    );
});

作者

Timur Flush

要求

PHP ^7.2.0

Phalcon ^3.4.0

版本

1.0.0 Beta 1

许可证

BSD-3-License