protected function createRoles()
    {
        $model = $this->config['roles']['model'];

        $users = $this->config['users']['model'];

        if (class_exists($users) && method_exists($users, 'setRolesModel')) {
            forward_static_call_array([$users, 'setRolesModel'], [$model]);
        }

        return new IlluminateRoleRepository($model);
    }
protected function createRoles()
    {
        $model = $this->config['roles']['model'];

        $users = $this->config['users']['model'];

        if (class_exists($users) && method_exists($users, 'setRolesModel')) {
            forward_static_call_array([$users, 'setRolesModel'], [$model]);
        }

        return new IlluminateRoleRepository($model);
    }
protected function createRoles ( ) { $ model = $ this -> config [ 'roles' ] [ 'model' ] ; $ users = $ this -> config [ 'users' ] [ 'model' ] ; if ( class_exists ( $ users ) && method_exists ( $ users , 'setRolesModel' ) ) { forward_static_call_array ( [ $ users , 'setRolesModel' ] , [ $ model ] ) ; } return new IlluminateRoleRepository ( $ model ) ; }
Creates a role repository.

@return \Cartalyst\Sentinel\Roles\IlluminateRoleRepository
Creates a role repository .