Skip to content

Commit

Permalink
移除iron驱动
Browse files Browse the repository at this point in the history
  • Loading branch information
yunwuxin committed Jul 12, 2016
1 parent e6d0771 commit d50fd5b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 278 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

```
'queue'=>[
'type'=>'sync' //驱动类型,可选择 sync(默认):同步执行,database:数据库驱动,redis:Redis驱动,iron:Iron.io驱动
'type'=>'sync' //驱动类型,可选择 sync(默认):同步执行,database:数据库驱动,redis:Redis驱动,topthink:Topthink驱动
//或其他自定义的完整的类名
]
```
Expand All @@ -17,9 +17,6 @@
> 各个驱动的具体可用配置项在`think\queue\driver`目录下各个驱动类里的`options`属性中,写在上面的`queue`配置里即可覆盖

## 使用 Iron
> composer require iron-io/iron_mq 4.*
## 使用 Database
> 创建如下数据表
Expand Down
15 changes: 0 additions & 15 deletions src/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,6 @@ public static function marshal()
self::handle()->marshal();
}

/**
* 订阅
* @param $name
* @param $url
* @param $queue
* @param array $options
*/
public static function subscribe($name, $url, $queue, array $options = [])
{
if (!method_exists(self::handle(), 'subscribe'))
throw new \RuntimeException('subscribe queues not support for this type');

self::handle()->subscribe($name, $url, $queue, $options);
}

private static function handle()
{
$options = Config::get('queue');
Expand Down
147 changes: 0 additions & 147 deletions src/driver/Iron.php

This file was deleted.

112 changes: 0 additions & 112 deletions src/job/Iron.php

This file was deleted.

0 comments on commit d50fd5b

Please sign in to comment.