Permalink
Browse files

Add public method getIdentityProvider()

  • Loading branch information...
1 parent 372e72f commit 1e4d80fd5a6c471f6806e1346af888f390c972f3 @booradleys booradleys committed Oct 18, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/BjyAuthorize/Service/Authorize.php
@@ -86,6 +86,11 @@ public function setIdentityProvider(IdentityProvider $provider)
$this->identityProvider = $provider;
return $this;
}
+
+ public function getIdentityProvider()
+ {
+ return $this->identityProvider;
+ }
public function addGuard($guard)
{
@@ -160,7 +165,7 @@ protected function load()
}
}
- $parentRoles = $this->identityProvider->getIdentityRoles();
+ $parentRoles = $this->getIdentityProvider()->getIdentityRoles();
$this->acl->addRole($this->getIdentity(), $parentRoles);
$this->loaded = true;

0 comments on commit 1e4d80f

Please sign in to comment.