prolic/humus-rbac-navigation-module

This package is abandoned and no longer maintained. No replacement package was suggested.

Integration of ZfcRbac and SpiffyNavigation for Zend Framework 2

dev-master 2015-08-29 13:33 UTC

This package is auto-updated.

Last update: 2020-03-09 18:00:42 UTC


README

Build Status Scrutinizer Code Quality Code Coverage License Total Downloads

Integration of ZfcRbac and SpiffyNavigation for Zend Framework 2

Dependencies

Installation

  1. Add "prolic/humus-rbac-navigation-module": "dev-master" to your composer.json
  2. Run php composer.phar install
  3. Enable the module in your config/application.config.php by adding HumusRbacNavigationModule to modules

Example-Configuration

return array(
    'modules' => array(
        'ZfcRbac',
        'SpiffyNavigation',
        'HumusRbacNavigationModule',
    )
);

Usage

Create your navigation using SpiffyNavigation as usual, you can either set the "role" or the "permission" option to any route.

The navigation entries will be hidden in SpiffyNavigation automatically.