lib/Auth/AclGenerator.php
private function loadRouteRules()
    {
        foreach ($this->rules['routeRules'] as $routeAlias => $routeRuleSets) {
            $resourceId = call_user_func_array($this->config['routeResourceGenerator'], [$routeAlias]);
            $this->acl->addResource(new Resource($resourceId));
            foreach ($routeRuleSets as $ruleSet) {
                $this->enforceRuleset($ruleSet, ['resources' => $resourceId, 'privileges' => $this->config['routePrivilege']]);
            }
        }
    }
private function loadRouteRules()
    {
        foreach ($this->rules['routeRules'] as $routeAlias => $routeRuleSets) {
            $resourceId = call_user_func_array($this->config['routeResourceGenerator'], [$routeAlias]);
            $this->acl->addResource(new Resource($resourceId));
            foreach ($routeRuleSets as $ruleSet) {
                $this->enforceRuleset($ruleSet, ['resources' => $resourceId, 'privileges' => $this->config['routePrivilege']]);
            }
        }
    }
private function loadRouteRules ( ) { foreach ( $ this -> rules [ 'routeRules' ] as $ routeAlias => $ routeRuleSets ) { $ resourceId = call_user_func_array ( $ this -> config [ 'routeResourceGenerator' ] , [ $ routeAlias ] ) ; $ this -> acl -> addResource ( new Resource ( $ resourceId ) ) ; foreach ( $ routeRuleSets as $ ruleSet ) { $ this -> enforceRuleset ( $ ruleSet , [ 'resources' => $ resourceId , 'privileges' => $ this -> config [ 'routePrivilege' ] ] ) ; } } }
Load route rules
Load route rules