<?php
/**
 * Created by PhpStorm.
 * User:  NODELOG
 * Date: 16/7/13
 * Time: 下午3:35
 */

namespace plugins\wxreply;


use yii\base\Event;

class Plugin extends \plugins\Plugin
{
    public $info = [
        'author' => 'nodelog',
        'version' => 'v1.0',
        'id' => 'wxreply',
        'name' => '微信自动回复',
        'description' => '微信自动回复'
    ];

    public function wechat($app)
    {
        Event::on('yii\web\Controller','afterAction', ['plugins\wxreply\ReplyListener', 'handle']);
    }

}