protected function updateInheritanceRoles()
    {
        foreach ($this->inheritanceRoles() as $role => $items) {
            foreach ($items as $item) {
                $this->authManager
                    ->addChild(RbacFactory::Role($role), RbacFactory::Role($item));

                echo sprintf('    > role `%s` inherited role `%s`.', $role, $item) . PHP_EOL;
            }
        }
    }
protected function updateInheritanceRoles()
    {
        foreach ($this->inheritanceRoles() as $role => $items) {
            foreach ($items as $item) {
                $this->authManager
                    ->addChild(RbacFactory::Role($role), RbacFactory::Role($item));

                echo sprintf('    > role `%s` inherited role `%s`.', $role, $item) . PHP_EOL;
            }
        }
    }
protected function updateInheritanceRoles ( ) { foreach ( $ this -> inheritanceRoles ( ) as $ role => $ items ) { foreach ( $ items as $ item ) { $ this -> authManager -> addChild ( RbacFactory :: Role ( $ role ) , RbacFactory :: Role ( $ item ) ) ; echo sprintf ( '    > role `%s` inherited role `%s`.' , $ role , $ item ) . PHP_EOL ; } } }
Update inheritance roles method
Update inheritance roles method