Permalink
Browse files

Merge pull request #39 from booradleys/master

Added public method BjyAuthorize\Service\Authorize#getIdentityProvider()
  • Loading branch information...
2 parents 372e72f + 1e4d80f commit dc923113bf80f421567ca483a2466586f88492f6 @bjyoungblood committed Oct 18, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/BjyAuthorize/Service/Authorize.php
View
7 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 dc92311

Please sign in to comment.