Commit a6595101 authored by rlgy's avatar rlgy

账单

parent 0687e53b
<?php
/**
* Created by PhpStorm.
* User: rlgyzhcn
* Date: 18-7-30
* Time: 下午3:09
*/
namespace api\controllers;
use common\models\pwallet\Bill;
use Yii;
use api\base\BaseController;
use api\job\BillJob;
class BillController extends BaseController
{
/**
* 插入交易记录
*/
public function actionInsert()
{
$post = Yii::$app->request->post();
$model = new Bill();
if ($model->load($post) && $model->validate()) {
$model->status = 0;
if ($model->save(false)) {
//加入队列
Yii::$app->queue->push(new BillJob(['id' => $model->id, 'txid' => $model->txid, 'chain' => $model->chain, 'from' => $model->from]));
return ['code' => 0, 'message' => 'succeed'];
}
} else {
return ['code' => -1, 'message' => '数据验证失败'];
}
}
}
\ No newline at end of file
<?php
/**
* Created by PhpStorm.
* User: rlgyzhcn
* Date: 18-7-30
* Time: 下午3:12
*/
namespace api\job;
use yii\base\BaseObject;
use yii\queue\JobInterface;
use yii\queue\Queue;
/**
* Class BillJob
*
* 处理账单队列数据
* @package api\job
*/
class BillJob extends BaseObject implements JobInterface
{
public $id;
public $chain;
public $txid;
public $from;
/**
* @param Queue $queue which pushed and is handling the job
* @return integer
*/
public function execute($queue)
{
//todo 查询交易状态, 更改状态
return 0;
}
}
\ No newline at end of file
......@@ -42,6 +42,18 @@ return [
'port' => 6379,
'database' => 1,
],
'redis-queue' => [
'class' => 'yii\redis\Connection',
'hostname' => 'localhost',
'password' => 'jlm123456',
'port' => 6379,
'database' => 2,
],
'queue' => [
'class' => \yii\queue\redis\Queue::class,
'redis' => 'redis-queue', // Redis connection component or its config
'channel' => 'queue', // Queue channel key
],
'uploader' => [
'class' => 'common\components\uploader\Uploader',
'baseuri' => 'http://127.0.0.1:8082/admin/upload',
......
......@@ -80,6 +80,17 @@ return [
'port' => 6379,
'database' => 1,
],
'redis-queue' => [
'class' => 'yii\redis\Connection',
'hostname' => 'localhost',
'port' => 6379,
'database' => 2,
],
'queue' => [
'class' => \yii\queue\redis\Queue::class,
'redis' => 'redis-queue', // Redis connection component or its config
'channel' => 'queue', // Queue channel key
],
'i18n' => [
'translations' => [
'*' => [
......
<?php
/**
* Created by PhpStorm.
* User: rlgyzhcn
* Date: 18-8-1
* Time: 下午5:13
*/
namespace common\models\pwallet;
use Yii;
use common\core\BaseActiveRecord;
class Bill extends BaseActiveRecord
{
/**
* @return null|object|\yii\db\Connection
* @throws \yii\base\InvalidConfigException
*/
public static function getDb()
{
return Yii::$app->get('db_pwallet');
}
public function formName()
{
return '';
}
public function attributeLabels()
{
return [
'id' => 'ID',
'txid' => 'HashId',
'chain' => '主链',
'coinname' => '币种',
'from' => '转出地址',
'to' => '转入地址',
'value' => '金额',
'fee' => '矿工费',
'status' => '状态',
'type' => '交易类型',
'height' => '区块高度',
'note' => '备注',
'blocktime' => '更新时间'
];
}
public function rules()
{
return [
[['txid', 'chain', 'coinname', 'from', 'to', 'value', 'fee', 'type'], 'required', 'message' => '{attribute} 不能为空'],
[['txid', 'from', 'to', 'note'], 'string', 'max' => 255],
[['chain', 'coinname'], 'string', 'max' => 32],
[['value', 'fee'], 'double'],
[['status', 'type'], 'number', 'max' => 2],
];
}
}
\ No newline at end of file
......@@ -19,7 +19,8 @@
"kartik-v/yii2-field-range": "*",
"kartik-v/yii2-date-range": "*",
"kartik-v/yii2-widget-fileinput": "*",
"yiisoft/yii2-redis": "~2.0.0"
"yiisoft/yii2-redis": "~2.0.0",
"yiisoft/yii2-queue": "~2.0"
},
"require-dev": {
"yiisoft/yii2-debug": "~2.0.0",
......
......@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"content-hash": "139577a2650159602fb12ecb9d8e76da",
"content-hash": "51ae166c71c3be07b2d84ab426a18ebe",
"packages": [
{
"name": "bower-asset/bootstrap",
......@@ -231,7 +231,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/e282486518/yii2-console-migration/5eab26b9c6d723ad1992cbc1bc3c8146aeb8080f.zip",
"url": "https://api.github.com/repos/e282486518/yii2-console-migration/zipball/5eab26b9c6d723ad1992cbc1bc3c8146aeb8080f",
"reference": "5eab26b9c6d723ad1992cbc1bc3c8146aeb8080f",
"shasum": ""
},
......@@ -269,7 +269,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/egulias/EmailValidator/8790f594151ca6a2010c6218e09d96df67173ad3.zip",
"url": "https://api.github.com/repos/egulias/EmailValidator/zipball/8790f594151ca6a2010c6218e09d96df67173ad3",
"reference": "8790f594151ca6a2010c6218e09d96df67173ad3",
"shasum": ""
},
......@@ -326,7 +326,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/ezyang/htmlpurifier/d85d39da4576a6934b72480be6978fb10c860021.zip",
"url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/d85d39da4576a6934b72480be6978fb10c860021",
"reference": "d85d39da4576a6934b72480be6978fb10c860021",
"shasum": ""
},
......@@ -373,7 +373,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/bootstrap-fileinput/7a2191d2b7ae65f5ca4ddb090a69d65805eb7edf.zip",
"url": "https://api.github.com/repos/kartik-v/bootstrap-fileinput/zipball/7a2191d2b7ae65f5ca4ddb090a69d65805eb7edf",
"reference": "7a2191d2b7ae65f5ca4ddb090a69d65805eb7edf",
"shasum": ""
},
......@@ -426,7 +426,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/bootstrap-star-rating/19120d91a4495abd181c7d4cbb69da73537093af.zip",
"url": "https://api.github.com/repos/kartik-v/bootstrap-star-rating/zipball/19120d91a4495abd181c7d4cbb69da73537093af",
"reference": "19120d91a4495abd181c7d4cbb69da73537093af",
"shasum": ""
},
......@@ -470,7 +470,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/dependent-dropdown/1349e7f5816a65e89bc227098386aac5b2c89363.zip",
"url": "https://api.github.com/repos/kartik-v/dependent-dropdown/zipball/1349e7f5816a65e89bc227098386aac5b2c89363",
"reference": "1349e7f5816a65e89bc227098386aac5b2c89363",
"shasum": ""
},
......@@ -517,7 +517,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/yii2-date-range/ed12260339f4699c363360465a22a46c714eb6be.zip",
"url": "https://api.github.com/repos/kartik-v/yii2-date-range/zipball/ed12260339f4699c363360465a22a46c714eb6be",
"reference": "ed12260339f4699c363360465a22a46c714eb6be",
"shasum": ""
},
......@@ -571,7 +571,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/yii2-field-range/dccc40867fe3b70c13dec8582e4ebd2fc468fe38.zip",
"url": "https://api.github.com/repos/kartik-v/yii2-field-range/zipball/dccc40867fe3b70c13dec8582e4ebd2fc468fe38",
"reference": "dccc40867fe3b70c13dec8582e4ebd2fc468fe38",
"shasum": ""
},
......@@ -629,7 +629,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/yii2-helpers/0b9d5f17464df9f68e249ed4411f9f1381927b83.zip",
"url": "https://api.github.com/repos/kartik-v/yii2-helpers/zipball/0b9d5f17464df9f68e249ed4411f9f1381927b83",
"reference": "0b9d5f17464df9f68e249ed4411f9f1381927b83",
"shasum": ""
},
......@@ -680,7 +680,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/yii2-krajee-base/0cafe6376780cedcd00f52c9d82b172d5851f6b0.zip",
"url": "https://api.github.com/repos/kartik-v/yii2-krajee-base/zipball/0cafe6376780cedcd00f52c9d82b172d5851f6b0",
"reference": "0cafe6376780cedcd00f52c9d82b172d5851f6b0",
"shasum": ""
},
......@@ -731,7 +731,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/yii2-widget-activeform/578de8c5dd751373a260e45122fe49211c33185a.zip",
"url": "https://api.github.com/repos/kartik-v/yii2-widget-activeform/zipball/578de8c5dd751373a260e45122fe49211c33185a",
"reference": "578de8c5dd751373a260e45122fe49211c33185a",
"shasum": ""
},
......@@ -783,7 +783,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/yii2-widget-affix/2184119bfa518c285406156f744769b13b861712.zip",
"url": "https://api.github.com/repos/kartik-v/yii2-widget-affix/zipball/2184119bfa518c285406156f744769b13b861712",
"reference": "2184119bfa518c285406156f744769b13b861712",
"shasum": ""
},
......@@ -832,7 +832,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/yii2-widget-alert/7348b0d047695a3e552888c481ce250cbc1f9d0d.zip",
"url": "https://api.github.com/repos/kartik-v/yii2-widget-alert/zipball/7348b0d047695a3e552888c481ce250cbc1f9d0d",
"reference": "7348b0d047695a3e552888c481ce250cbc1f9d0d",
"shasum": ""
},
......@@ -887,7 +887,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/yii2-widget-colorinput/3f6e847ef72cf6e27e4d3b4870b00b8f80d51752.zip",
"url": "https://api.github.com/repos/kartik-v/yii2-widget-colorinput/zipball/3f6e847ef72cf6e27e4d3b4870b00b8f80d51752",
"reference": "3f6e847ef72cf6e27e4d3b4870b00b8f80d51752",
"shasum": ""
},
......@@ -933,16 +933,16 @@
},
{
"name": "kartik-v/yii2-widget-datepicker",
"version": "v1.4.3",
"version": "v1.4.4",
"source": {
"type": "git",
"url": "https://github.com/kartik-v/yii2-widget-datepicker.git",
"reference": "b793655b63e77e5598ed232cf887cc640c30420f"
"reference": "39e0e71277d0f115341e118a2b879a0dfcbd01c3"
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/yii2-widget-datepicker/b793655b63e77e5598ed232cf887cc640c30420f.zip",
"reference": "b793655b63e77e5598ed232cf887cc640c30420f",
"url": "https://api.github.com/repos/kartik-v/yii2-widget-datepicker/zipball/39e0e71277d0f115341e118a2b879a0dfcbd01c3",
"reference": "39e0e71277d0f115341e118a2b879a0dfcbd01c3",
"shasum": ""
},
"require": {
......@@ -983,7 +983,7 @@
"widget",
"yii2"
],
"time": "2017-09-04T03:28:47+00:00"
"time": "2018-07-13T09:53:28+00:00"
},
{
"name": "kartik-v/yii2-widget-datetimepicker",
......@@ -995,7 +995,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/yii2-widget-datetimepicker/e843520aca008dc0807aa7ea99bfab2cc03c9a3c.zip",
"url": "https://api.github.com/repos/kartik-v/yii2-widget-datetimepicker/zipball/e843520aca008dc0807aa7ea99bfab2cc03c9a3c",
"reference": "e843520aca008dc0807aa7ea99bfab2cc03c9a3c",
"shasum": ""
},
......@@ -1044,7 +1044,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/yii2-widget-depdrop/6918ca6f7d7be153c80f6aa9c261f9b333293e9c.zip",
"url": "https://api.github.com/repos/kartik-v/yii2-widget-depdrop/zipball/6918ca6f7d7be153c80f6aa9c261f9b333293e9c",
"reference": "6918ca6f7d7be153c80f6aa9c261f9b333293e9c",
"shasum": ""
},
......@@ -1093,7 +1093,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/yii2-widget-fileinput/d2c8dcde1aa69ac0c4a0e3b3cfc0d79b3cc2a550.zip",
"url": "https://api.github.com/repos/kartik-v/yii2-widget-fileinput/zipball/d2c8dcde1aa69ac0c4a0e3b3cfc0d79b3cc2a550",
"reference": "d2c8dcde1aa69ac0c4a0e3b3cfc0d79b3cc2a550",
"shasum": ""
},
......@@ -1148,7 +1148,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/yii2-widget-growl/c79abaa47e9103e93345cd1eca7bc75e17e9a92e.zip",
"url": "https://api.github.com/repos/kartik-v/yii2-widget-growl/zipball/c79abaa47e9103e93345cd1eca7bc75e17e9a92e",
"reference": "c79abaa47e9103e93345cd1eca7bc75e17e9a92e",
"shasum": ""
},
......@@ -1197,7 +1197,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/yii2-widget-rangeinput/ad82cf956b95555d39dbb534587c7827b1dc7bdf.zip",
"url": "https://api.github.com/repos/kartik-v/yii2-widget-rangeinput/zipball/ad82cf956b95555d39dbb534587c7827b1dc7bdf",
"reference": "ad82cf956b95555d39dbb534587c7827b1dc7bdf",
"shasum": ""
},
......@@ -1246,7 +1246,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/yii2-widget-rating/5d022668555303c3963582af91beb4a6c9f94243.zip",
"url": "https://api.github.com/repos/kartik-v/yii2-widget-rating/zipball/5d022668555303c3963582af91beb4a6c9f94243",
"reference": "5d022668555303c3963582af91beb4a6c9f94243",
"shasum": ""
},
......@@ -1302,7 +1302,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/yii2-widget-select2/baaa8f8b8bbaed1ed0aea56fb0564c5ab340d7d3.zip",
"url": "https://api.github.com/repos/kartik-v/yii2-widget-select2/zipball/baaa8f8b8bbaed1ed0aea56fb0564c5ab340d7d3",
"reference": "baaa8f8b8bbaed1ed0aea56fb0564c5ab340d7d3",
"shasum": ""
},
......@@ -1355,7 +1355,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/yii2-widget-sidenav/02ee4f142d7dfbb316f878e538cc7b946f4502d2.zip",
"url": "https://api.github.com/repos/kartik-v/yii2-widget-sidenav/zipball/02ee4f142d7dfbb316f878e538cc7b946f4502d2",
"reference": "02ee4f142d7dfbb316f878e538cc7b946f4502d2",
"shasum": ""
},
......@@ -1404,7 +1404,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/yii2-widget-spinner/3132ba14d58e0564d17f3b846b04c42aa72bdde3.zip",
"url": "https://api.github.com/repos/kartik-v/yii2-widget-spinner/zipball/3132ba14d58e0564d17f3b846b04c42aa72bdde3",
"reference": "3132ba14d58e0564d17f3b846b04c42aa72bdde3",
"shasum": ""
},
......@@ -1452,7 +1452,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/yii2-widget-switchinput/7d8ee999d79bcdc1601da5cd59439ac7eb1f5ea6.zip",
"url": "https://api.github.com/repos/kartik-v/yii2-widget-switchinput/zipball/7d8ee999d79bcdc1601da5cd59439ac7eb1f5ea6",
"reference": "7d8ee999d79bcdc1601da5cd59439ac7eb1f5ea6",
"shasum": ""
},
......@@ -1502,7 +1502,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/yii2-widget-timepicker/203aeb9123e7fa9a3c584d206793d82abe96d469.zip",
"url": "https://api.github.com/repos/kartik-v/yii2-widget-timepicker/zipball/203aeb9123e7fa9a3c584d206793d82abe96d469",
"reference": "203aeb9123e7fa9a3c584d206793d82abe96d469",
"shasum": ""
},
......@@ -1556,7 +1556,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/yii2-widget-touchspin/afc56f68d87c65c9659b76ac82ae4ae8160634c6.zip",
"url": "https://api.github.com/repos/kartik-v/yii2-widget-touchspin/zipball/afc56f68d87c65c9659b76ac82ae4ae8160634c6",
"reference": "afc56f68d87c65c9659b76ac82ae4ae8160634c6",
"shasum": ""
},
......@@ -1606,7 +1606,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/yii2-widget-typeahead/e369cd55cb2fb9d3a82b57ea6c9a62d69f14fb94.zip",
"url": "https://api.github.com/repos/kartik-v/yii2-widget-typeahead/zipball/e369cd55cb2fb9d3a82b57ea6c9a62d69f14fb94",
"reference": "e369cd55cb2fb9d3a82b57ea6c9a62d69f14fb94",
"shasum": ""
},
......@@ -1654,7 +1654,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/kartik-v/yii2-widgets/f435d5e96c4848844bdfa9cee58249ccfb3e2dd2.zip",
"url": "https://api.github.com/repos/kartik-v/yii2-widgets/zipball/f435d5e96c4848844bdfa9cee58249ccfb3e2dd2",
"reference": "f435d5e96c4848844bdfa9cee58249ccfb3e2dd2",
"shasum": ""
},
......@@ -1708,16 +1708,16 @@
},
{
"name": "swiftmailer/swiftmailer",
"version": "v6.0.2",
"version": "v6.1.2",
"source": {
"type": "git",
"url": "https://github.com/swiftmailer/swiftmailer.git",
"reference": "412333372fb6c8ffb65496a2bbd7321af75733fc"
"reference": "7d760881d266d63c5e7a1155cbcf2ac656a31ca8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/412333372fb6c8ffb65496a2bbd7321af75733fc",
"reference": "412333372fb6c8ffb65496a2bbd7321af75733fc",
"url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/7d760881d266d63c5e7a1155cbcf2ac656a31ca8",
"reference": "7d760881d266d63c5e7a1155cbcf2ac656a31ca8",
"shasum": ""
},
"require": {
......@@ -1728,10 +1728,14 @@
"mockery/mockery": "~0.9.1",
"symfony/phpunit-bridge": "~3.3@dev"
},
"suggest": {
"ext-intl": "Needed to support internationalized email addresses",
"true/punycode": "Needed to support internationalized email addresses, if ext-intl is not installed"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "6.0-dev"
"dev-master": "6.1-dev"
}
},
"autoload": {
......@@ -1753,13 +1757,62 @@
}
],
"description": "Swiftmailer, free feature-rich PHP mailer",
"homepage": "http://swiftmailer.symfony.com",
"homepage": "https://swiftmailer.symfony.com",
"keywords": [
"email",
"mail",
"mailer"
],
"time": "2017-09-30T22:39:41+00:00"
"time": "2018-07-13T07:04:35+00:00"
},
{
"name": "symfony/process",
"version": "v4.1.1",
"source": {
"type": "git",
"url": "https://github.com/symfony/process.git",
"reference": "1d1677391ecf00d1c5b9482d6050c0c27aa3ac3a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/process/zipball/1d1677391ecf00d1c5b9482d6050c0c27aa3ac3a",
"reference": "1d1677391ecf00d1c5b9482d6050c0c27aa3ac3a",
"shasum": ""
},
"require": {
"php": "^7.1.3"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "4.1-dev"
}
},
"autoload": {
"psr-4": {
"Symfony\\Component\\Process\\": ""
},
"exclude-from-classmap": [
"/Tests/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony Process Component",
"homepage": "https://symfony.com",
"time": "2018-05-31T10:17:53+00:00"
},
{
"name": "yiisoft/yii2",
......@@ -1771,7 +1824,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/yiisoft/yii2-framework/ed3a9e1c4abe206e1c3ce48a6b3624119b79850d.zip",
"url": "https://api.github.com/repos/yiisoft/yii2-framework/zipball/ed3a9e1c4abe206e1c3ce48a6b3624119b79850d",
"reference": "ed3a9e1c4abe206e1c3ce48a6b3624119b79850d",
"shasum": ""
},
......@@ -1871,7 +1924,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/yiisoft/yii2-bootstrap/3f49c47924bb9fa5363c3fc7b073d954168cf438.zip",
"url": "https://api.github.com/repos/yiisoft/yii2-bootstrap/zipball/3f49c47924bb9fa5363c3fc7b073d954168cf438",
"reference": "3f49c47924bb9fa5363c3fc7b073d954168cf438",
"shasum": ""
},
......@@ -1923,16 +1976,16 @@
},
{
"name": "yiisoft/yii2-composer",
"version": "2.0.6",
"version": "2.0.7",
"source": {
"type": "git",
"url": "https://github.com/yiisoft/yii2-composer.git",
"reference": "163419f1f197e02f015713b0d4f85598d8f8aa80"
"reference": "1439e78be1218c492e6cde251ed87d3f128b9534"
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/yiisoft/yii2-composer/163419f1f197e02f015713b0d4f85598d8f8aa80.zip",
"reference": "163419f1f197e02f015713b0d4f85598d8f8aa80",
"url": "https://api.github.com/repos/yiisoft/yii2-composer/zipball/1439e78be1218c492e6cde251ed87d3f128b9534",
"reference": "1439e78be1218c492e6cde251ed87d3f128b9534",
"shasum": ""
},
"require": {
......@@ -1973,7 +2026,91 @@
"extension installer",
"yii2"
],
"time": "2018-03-21T16:15:55+00:00"
"time": "2018-07-05T15:44:47+00:00"
},
{
"name": "yiisoft/yii2-queue",
"version": "2.1.0",
"source": {
"type": "git",
"url": "https://github.com/yiisoft/yii2-queue.git",
"reference": "d04b4b3c932081200876a351cc6c3502e89e11b8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/yiisoft/yii2-queue/zipball/d04b4b3c932081200876a351cc6c3502e89e11b8",
"reference": "d04b4b3c932081200876a351cc6c3502e89e11b8",
"shasum": ""
},
"require": {
"php": ">=5.5.0",
"symfony/process": "*",
"yiisoft/yii2": "~2.0.14"
},
"require-dev": {
"aws/aws-sdk-php": ">=2.4",
"enqueue/amqp-lib": "^0.8",
"jeremeamia/superclosure": "*",
"pda/pheanstalk": "*",
"php-amqplib/php-amqplib": "*",
"phpunit/phpunit": "~4.4",
"yiisoft/yii2-debug": "*",
"yiisoft/yii2-gii": "*",
"yiisoft/yii2-redis": "*"
},
"suggest": {
"aws/aws-sdk-php": "Need for aws SQS.",
"enqueue/amqp-lib": "Need for AMQP interop queue.",
"ext-gearman": "Need for Gearman queue.",
"ext-pcntl": "Need for process signals.",
"pda/pheanstalk": "Need for Beanstalk queue.",
"php-amqplib/php-amqplib": "Need for AMQP queue.",
"yiisoft/yii2-redis": "Need for Redis queue."
},
"type": "yii2-extension",
"extra": {
"branch-alias": {
"dev-master": "2.0.x-dev"
}
},
"autoload": {
"psr-4": {
"yii\\queue\\": "src",
"yii\\queue\\amqp\\": "src/drivers/amqp",
"yii\\queue\\amqp_interop\\": "src/drivers/amqp_interop",
"yii\\queue\\beanstalk\\": "src/drivers/beanstalk",
"yii\\queue\\db\\": "src/drivers/db",
"yii\\queue\\file\\": "src/drivers/file",
"yii\\queue\\gearman\\": "src/drivers/gearman",
"yii\\queue\\redis\\": "src/drivers/redis",
"yii\\queue\\sync\\": "src/drivers/sync",
"yii\\queue\\sqs\\": "src/drivers/sqs"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Roman Zhuravlev",
"email": "zhuravljov@gmail.com"
}
],
"description": "Yii2 Queue Extension which supported DB, Redis, RabbitMQ, Beanstalk, SQS and Gearman",
"keywords": [
"async",
"beanstalk",
"db",
"gearman",
"gii",
"queue",
"rabbitmq",
"redis",
"sqs",
"yii"
],
"time": "2018-05-23T21:04:57+00:00"
},
{
"name": "yiisoft/yii2-redis",
......@@ -1985,7 +2122,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/yiisoft/yii2-redis/ffe6bff8dc6be4bb84c9495cd3ef7ef1161c1314.zip",
"url": "https://api.github.com/repos/yiisoft/yii2-redis/zipball/ffe6bff8dc6be4bb84c9495cd3ef7ef1161c1314",
"reference": "ffe6bff8dc6be4bb84c9495cd3ef7ef1161c1314",
"shasum": ""
},
......@@ -2036,7 +2173,7 @@
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/yiisoft/yii2-swiftmailer/fd917fbe63b7ea796c52902143b83b98e65bfb73.zip",
"url": "https://api.github.com/repos/yiisoft/yii2-swiftmailer/zipball/fd917fbe63b7ea796c52902143b83b98e65bfb73",
"reference": "fd917fbe63b7ea796c52902143b83b98e65bfb73",
"shasum": ""
},
......@@ -2158,16 +2295,16 @@
},
{
"name": "codeception/base",
"version": "2.4.3",
"version": "2.4.4",
"source": {
"type": "git",
"url": "https://github.com/Codeception/base.git",
"reference": "a1416d3cd829bf8decb491143b3e8f8e02ee827f"
"reference": "ed252a26bbb939e9c55465dbec4a0c7481728023"
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/Codeception/base/a1416d3cd829bf8decb491143b3e8f8e02ee827f.zip",
"reference": "a1416d3cd829bf8decb491143b3e8f8e02ee827f",
"url": "https://api.github.com/repos/Codeception/base/zipball/ed252a26bbb939e9c55465dbec4a0c7481728023",
"reference": "ed252a26bbb939e9c55465dbec4a0c7481728023",
"shasum": ""
},
"require": {
......@@ -2243,7 +2380,7 @@
"functional testing",
"unit testing"
],
"time": "2018-06-26T14:35:46+00:00"
"time": "2018-07-16T09:12:13+00:00"
},
{
"name": "codeception/phpunit-wrapper",
......@@ -2413,16 +2550,16 @@
},
{
"name": "fzaninotto/faker",
"version": "v1.7.1",
"version": "v1.8.0",
"source": {
"type": "git",
"url": "https://github.com/fzaninotto/Faker.git",
"reference": "d3ed4cc37051c1ca52d22d76b437d14809fc7e0d"
"reference": "f72816b43e74063c8b10357394b6bba8cb1c10de"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/fzaninotto/Faker/zipball/d3ed4cc37051c1ca52d22d76b437d14809fc7e0d",
"reference": "d3ed4cc37051c1ca52d22d76b437d14809fc7e0d",
"url": "https://api.github.com/repos/fzaninotto/Faker/zipball/f72816b43e74063c8b10357394b6bba8cb1c10de",
"reference": "f72816b43e74063c8b10357394b6bba8cb1c10de",
"shasum": ""
},
"require": {
......@@ -2430,7 +2567,7 @@
},
"require-dev": {
"ext-intl": "*",
"phpunit/phpunit": "^4.0 || ^5.0",
"phpunit/phpunit": "^4.8.35 || ^5.7",
"squizlabs/php_codesniffer": "^1.5"
},
"type": "library",
......@@ -2459,7 +2596,7 @@
"faker",
"fixtures"
],
"time": "2017-08-15T16:48:10+00:00"
"time": "2018-07-12T10:23:15+00:00"
},
{
"name": "guzzlehttp/psr7",
......@@ -3411,16 +3548,16 @@
},
{
"name": "sebastian/comparator",
"version": "3.0.1",
"version": "3.0.2",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/comparator.git",
"reference": "591a30922f54656695e59b1f39501aec513403da"
"reference": "5de4fc177adf9bce8df98d8d141a7559d7ccf6da"
},
"dist": {
"type": "zip",
"url": "https://files.phpcomposer.com/files/sebastianbergmann/comparator/591a30922f54656695e59b1f39501aec513403da.zip",
"reference": "591a30922f54656695e59b1f39501aec513403da",
"url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/5de4fc177adf9bce8df98d8d141a7559d7ccf6da",
"reference": "5de4fc177adf9bce8df98d8d141a7559d7ccf6da",
"shasum": ""
},
"require": {
......@@ -3471,7 +3608,7 @@
"compare",
"equality"
],
"time": "2018-06-14T15:05:28+00:00"
"time": "2018-07-12T15:12:46+00:00"
},
{
"name": "sebastian/diff",
......
......@@ -9,7 +9,10 @@ $params = array_merge(
return [
'id' => 'app-console',
'basePath' => dirname(__DIR__),
'bootstrap' => ['log'],
'bootstrap' => [
'log',
'queue'
],
'controllerNamespace' => 'console\controllers',
'aliases' => [
'@bower' => '@vendor/bower-asset',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment