Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $child = $this->getRbac()->getChild($identityRole);
- $children = $child->getChildren();
- echo 'child',PHP_EOL;
- var_dump($child);
- echo 'children',PHP_EOL;
- var_dump($children);exit;
- //child
- //
- //object(SpiffySecurity\Rbac\Role)[269]
- // protected 'name' => string 'administrator' (length=13)
- // protected 'permissions' =>
- // array
- // empty
- // protected 'index' => int 1
- // protected 'children' =>
- // array
- // 0 =>
- // object(SpiffySecurity\Rbac\Role)[270]
- // protected 'name' => string 'moderator' (length=9)
- // protected 'permissions' =>
- // array
- // ...
- // protected 'index' => int 1
- // protected 'children' =>
- // array
- // ...
- //children
- //
- //array
- // empty
Add Comment
Please, Sign In to add comment