Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #298 from sebastianbergmann/master
Browse files Browse the repository at this point in the history
Add support for setter injection of IdentityProviderInterface and RoleeProviderInterface instances
  • Loading branch information
bakura10 committed May 29, 2015
2 parents dd46259 + 334c4ae commit e1a4070
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/ZfcRbac/Service/RoleService.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,26 @@ public function __construct(
$this->traversalStrategy = $traversalStrategy;
}

/**
* Set the identity provider
*
* @param IdentityProviderInterface $identityProvider
*/
public function setIdentityProvider(IdentityProviderInterface $identityProvider)
{
$this->identityProvider = $identityProvider;
}

/**
* Set the identity provider
*
* @param RoleProviderInterface $roleProvider
*/
public function setRoleProvider(RoleProviderInterface $roleProvider)
{
$this->roleProvider = $roleProvider;
}

/**
* Set the guest role
*
Expand Down

0 comments on commit e1a4070

Please sign in to comment.