vim/user-acl

There is no license information available for the latest version (1.0.0) of this package.

UserAcl module for zend framework 3

1.0.0 2018-01-21 20:37 UTC

README

Module for Zend Framework 3.

Installation

Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.

composer require vim/user-acl

Register Vim\User in config/modules.config.php:

<?php
return [
    'Vim\UserAcl',
];

Register Entity:

<?php
return [
    'doctrine' => [
        'driver' => [
            'application_annotation_driver' => [
                'paths' => [
                    './vendor/vim/user-acl/src/Entity',
                ],
            ],
            'orm_default' => [
                'drivers' => [
                    'Vim\UserAcl\Entity' => 'application_annotation_driver',
                ],
            ],
        ]
    ],
];

CRUD Service

<?php
/** @var \Vim\UserAcl\Service\UserRoleService $userRoleService */
$userRoleService = $container->get(\Vim\UserAcl\Service\UserRoleService::class);

More information here: vim/crud

Role and recourse config

More information here: vim/acl