Skip to content

Commit

Permalink
Added correct initialisation for the decomposer to controller
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartendeKruijf committed May 15, 2024
1 parent 48d10ab commit b2ce926
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"soarca/utils"
httpUtil "soarca/utils/http"
"soarca/utils/stix/expression/comparison"
soarca_time "soarca/utils/time"

downstreamReporter "soarca/internal/reporter/downstream_reporter"

Expand Down Expand Up @@ -83,11 +84,13 @@ func (controller *Controller) NewDecomposer() decomposer.IDecomposer {
stixComparison := comparison.New()
conditionExecutor := condition.New(stixComparison, reporter)
guid := new(guid.Guid)
soarcaTime := new(soarca_time.Time)
decompose := decomposer.New(actionExecutor,
playbookActionExecutor,
conditionExecutor,
guid,
reporter)
reporter,
soarcaTime)
return decompose
}

Expand Down

0 comments on commit b2ce926

Please sign in to comment.