eye4web/eye4web-zf2-board-abac

Eye4web\Zf2Board 和 \Eye4web\Zf2Abac 之间的集成

dev-master 2016-07-29 22:04 UTC

This package is not auto-updated.

Last update: 2024-09-14 15:37:30 UTC


README

简介

本模块将集成 Eye4web\Zf2BoardEye4web\Zf2Abac,并设置断言以

  • 读取版块
  • 读取/写入主题
  • 编写/编辑/删除帖子

安装

使用 composer

  1. 将此项目添加到 composer.json 文件中

    "require": {
        "eye4web/eye4web-zf2-board-abac": "dev-master"
    }
  2. 现在运行以下命令让 composer 下载模块

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

    <?php
    return array(
        'modules' => array(
            // ...
            'Eye4web\Zf2BoardAbac'
        ),
        // ...
    );
  4. 创建权限组

现在您可以使用断言

  • board.read
  • topic.read
  • topic.write
  • post.write
  • post.edit
  • post.delete

依赖关系

Eye4web\Zf2Abac