private function instantiateDefaultRoles()
    {
        // this method can be removed in favor of `yii\rbac\BaseManager::getDefaultRoles()` in case
        // extension dependency on `yii2` is raised up to 2.0.12
        $result = [];
        foreach ($this->defaultRoles as $roleName) {
            $result[$roleName] = $this->createRole($roleName);
        }
        return $result;
    }
private function instantiateDefaultRoles()
    {
        // this method can be removed in favor of `yii\rbac\BaseManager::getDefaultRoles()` in case
        // extension dependency on `yii2` is raised up to 2.0.12
        $result = [];
        foreach ($this->defaultRoles as $roleName) {
            $result[$roleName] = $this->createRole($roleName);
        }
        return $result;
    }
private function instantiateDefaultRoles ( ) { // this method can be removed in favor of `yii\rbac\BaseManager::getDefaultRoles()` in case // extension dependency on `yii2` is raised up to 2.0.12 $ result = [ ] ; foreach ( $ this -> defaultRoles as $ roleName ) { $ result [ $ roleName ] = $ this -> createRole ( $ roleName ) ; } return $ result ; }
Returns defaultRoles as array of Role objects
@since 2.1.3
@return Role[] default roles. The array is indexed by the role names
Returns defaultRoles as array of Role objects