Skip to content

Commit

Permalink
Merge pull request #25 from jdeniau/patch-2
Browse files Browse the repository at this point in the history
Docfix: add use MaskBuilder
  • Loading branch information
bytehead committed Apr 2, 2015
2 parents aa9a172 + 33fb0c3 commit 7e03479
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Resources/doc/find_objects_for_user.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ This can easily become a pain if you have a lot of items to load.
This bundle adds the reverse side to symfony: you can load all items for a user just with this command:

```php
use Symfony\Component\Security\Acl\Permission\MaskBuilder;

$aclProvider = $this->get('security.acl.provider');
$user = $this->get('security.context')->getToken()->getUser();

Expand Down

0 comments on commit 7e03479

Please sign in to comment.