Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit ad483cc

Browse files
committed
Added example for LIFO
1 parent 18c7b67 commit ad483cc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/book/usage.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ before the "guest" role, the example code would print "allowed".
107107
>
108108
> When specifying multiple parents for a role, keep in mind that the last parent listed is the first
109109
> one searched for rules applicable to an authorization query.
110+
>
111+
> For example:
112+
> ```
113+
> $acl->addRole(new Role('top'), ['bottom', 'middle']);
114+
> ```
110115
111116
## Creating the Access Control List
112117

0 commit comments

Comments
 (0)