Skip to content

Commit

Permalink
Preparing release of 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rarog committed Apr 18, 2018
1 parent d9ed3bb commit 22c0e15
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
15 changes: 9 additions & 6 deletions README.md
Expand Up @@ -16,7 +16,9 @@ Please use below table to figure out what version of ZfcUser you should use.

| UserRbac version | Supported Zend Framework version |
|------------------|----------------------------------|
| 1.x | >= 3.x |
| 0.x | <= 2.5 |
| 1.x | >= 2.6 < 3 |
| 2.x | >= 3.x |

## Features
1. No need to write code for integrating ZfcUser and ZfcRbac
Expand Down Expand Up @@ -46,11 +48,12 @@ This module comes with a new strategy called `SmartRedirectStrategy`. This simpl
```php
public function onBootstrap(EventInterface $e)
{
$t = $e->getTarget();

$t->getEventManager()->attach(
$t->getServiceManager()->get('UserRbac\View\Strategy\SmartRedirectStrategy')
);
$app = $e->getApplication();
$sm = $app->getServiceManager();
$em = $app->getEventManager();

$listener = $sm->get(\UserRbac\View\Strategy\SmartRedirectStrategy::class);
$listener->attach($em);
}
```

Expand Down
6 changes: 4 additions & 2 deletions config/user-rbac.global.php.dist
@@ -1,4 +1,6 @@
<?php
namespace UserRbac;

/**
* UserRbac Configuration
*
Expand Down Expand Up @@ -34,9 +36,9 @@ $options = [
* User Role Linker Entity Class
*
* Class name of User Role Linker Entity
* Default: UserRbac\Entity\UserRoleLinker
* Default: Model\UserRoleLinker::class
*/
//'user_role_linker_entity_class' => 'UserRbac\Entity\UserRoleLinker',
//'user_role_linker_entity_class' => Model\UserRoleLinker::class,
];

/**
Expand Down

0 comments on commit 22c0e15

Please sign in to comment.