Files
OMS/app/taskmgr/lib/connecter/rabbitmq.php
2025-12-28 23:13:25 +08:00

28 lines
667 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
/**
* rabbitmq 访问对像
*
* @author hzjsq@foxmail.com
* @version 0.1 b
*/
//判断使用的 rabbitmq 访问插件
if (defined('__RABBITMQ_INTERFACE__') && strtolower(__RABBITMQ_INTERFACE__ == 'pecl') && class_exists('AMQPConnection')) {
//使用php的amqp插件访问rabbitmq
class taskmgr_connecter_rabbitmq extends taskmgr_connecter_rabbitmq_pecl {
}
} else {
//使用php原生代码写在写phpamqplib访问rabbitmq
class taskmgr_connecter_rabbitmq extends taskmgr_connecter_rabbitmq_stocket {
}
}