Skip to content

Commit

Permalink
implementing createAce in ObjectFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
restuarifp committed Feb 2, 2016
1 parent 49f043d commit 3042897
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ObjectFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,13 @@ public function convertTypeDefinition(TypeDefinitionInterface $typeDefinition)
*/
public function createAce($principal, array $permissions)
{
// TODO: Implement createAce() method.
// Binding Object Factory from session
$bof = $this->session->getBinding()->getObjectFactory();

// Create ACE with particular principal and permissions
$ace = $bof->createAccessControlEntry($principal, $permissions);

return $ace;
}

/**
Expand Down

0 comments on commit 3042897

Please sign in to comment.