func New(logger *cl.CustomLogger, svcconfs ...SvcConf) IAuthzService {
	svc := NewBasicAuthzService()
	svc.cl = logger
	for _, configure := range svcconfs {
		if configure != nil {
			if err := configure(svc); err != nil {
				logger.Error(context.TODO(), fmt.Sprintf("svc err: %v", err))
				return nil
			}
		}
	}

	return svc
}
// New returns a AuthzService implementation with
// all of the expected config/middleware wired in.
New returns a AuthzService implementation with
all of the expected config/middleware wired in.
// New returns a AuthzService implementation with // all of the expected config / middleware wired in .
func New(logger *cl.CustomLogger, svcconfs ...SvcConf) IAuthzService {
	svc := NewBasicAuthzService()
	svc.cl = logger
	for _, configure := range svcconfs {
		if configure != nil {
			if err := configure(svc); err != nil {
				logger.Error(context.TODO(), fmt.Sprintf("svc err: %v", err))
				return nil
			}
		}
	}
	return svc
}
func New ( logger * cl . CustomLogger , svcconfs ... SvcConf ) IAuthzService { svc := NewBasicAuthzService ( ) svc . cl = logger for _ , configure := range svcconfs { if configure != nil { if err := configure ( svc ) ; err != nil { logger . Error ( context . TODO ( ) , fmt . Sprintf ( " " , err ) ) return nil } } } return svc }
New returns a AuthzService implementation with
all of the expected config/middleware wired in.
New returns a AuthzService implementation with all of the expected config / middleware wired in .