in operationsbus/matcher.go [72:88]
func (m *Matcher) CreateHookedInstace(key string, hooks []BaseOperationHooksInterface) (*HookedApiOperation, error) {
operation, err := m.CreateOperationInstance(key)
if err != nil {
return nil, err
}
if hooks == nil {
hooks = []BaseOperationHooksInterface{}
}
hOperation := &HookedApiOperation{
Operation: operation,
OperationHooks: hooks,
}
return hOperation, nil
}