PHP Classes

File: app/configs/components/auth.php

Recommend this page to a friend!
  Classes of Oleg Lunegov   MicroPHP Framework   app/configs/components/auth.php   Download  
File: app/configs/components/auth.php
Role: Configuration script
Content type: text/plain
Description: setup auth
Class: MicroPHP Framework
MVC framework for Web or command line applications
Author: By
Last change: Update of app/configs/components/auth.php
Date: 8 months ago
Size: 487 bytes
 

Contents

Class file image Download
<?php

// Roles
return [
   
'class' => '\Micro\Auth\DbAcl',
   
'arguments' => [
       
'container' => '@this',
       
'roles' => [ // Permission roles
           
'roles' => [
               
1 => 'user',
               
2 => 'admin'
           
],
           
'perms' => [
               
1 => 'news_read',
               
2 => 'news_create',
               
3 => 'news_edit'
           
],
           
'role_perms' => [
               
1 => [2, 3]
            ]
        ]
    ]
];