'nodelog', 'version' => 'v1.0', 'id' => 'wxfollow', 'name' => '微信关注取关', 'description' => '微信关注取关' ]; public function wechat($app) { $config = $this->getConfig(); Event::on('yii\web\Controller','afterAction', ['plugins\wxfollow\FollowListener', 'handle'], $config); } }