PHP Class ZfcRbac\Role\ObjectRepositoryRoleProvider

Author: MichaĆ«l Gallego ([email protected])
Inheritance: implements ZfcRbac\Role\RoleProviderInterface
Show file Open project: zf-commons/zfc-rbac Class Usage Examples

Public Methods

Method Description
__construct ( Doctrine\Common\Persistence\ObjectRepository $objectRepository, string $roleNameProperty ) Constructor
clearRoleCache ( ) : void Clears the role cache
getRoles ( array $roleNames ) {@inheritDoc}

Method Details

__construct() public method

Constructor
public __construct ( Doctrine\Common\Persistence\ObjectRepository $objectRepository, string $roleNameProperty )
$objectRepository Doctrine\Common\Persistence\ObjectRepository
$roleNameProperty string

clearRoleCache() public method

Clears the role cache
public clearRoleCache ( ) : void
return void

getRoles() public method

{@inheritDoc}
public getRoles ( array $roleNames )
$roleNames array