eye4web/eye4web-zfc-user-warnings-ban

根据警告次数/总权重禁用用户

0.0.3 2016-12-23 22:34 UTC

This package is not auto-updated.

Last update: 2024-09-20 03:33:23 UTC


README

Build Status Latest Stable Version Latest Unstable Version Code Climate Test Coverage Total Downloads License

简介

此模块允许您在用户收到x次警告或达到总警告权重后禁止用户。

安装

使用composer

  1. 将此项目的composer.json添加到您的项目中

    "require": {
        "eye4web/eye4web-zfc-user-warnings-ban": "dev-master"
    }
  2. 现在运行以下命令让composer下载模块

    php composer.phar update
  3. 在您的application.config.php文件中启用它。

    <?php
    return array(
        'modules' => array(
            // ...
            'Eye4web\ZfcUser\WarningsBan'
        ),
        // ...
    );
  4. 将配置从config/eye4web-zfcuser-warnings-ban.global.php.dist复制到您的autoload文件夹中。