diff --git a/dt/detect.go b/dt/detect.go index 9d26ef0..6db1c36 100644 --- a/dt/detect.go +++ b/dt/detect.go @@ -40,6 +40,26 @@ func (d Detect) Detect(context libcnb.DetectContext) (libcnb.DetectResult, error return libcnb.DetectResult{ Pass: true, Plans: []libcnb.BuildPlan{ + { + Provides: []libcnb.BuildPlanProvide{ + {Name: "dynatrace-php"}, + }, + Requires: []libcnb.BuildPlanRequire{ + {Name: "dynatrace-php"}, + {Name: "php"}, + {Name: "httpd"}, + }, + }, + { + Provides: []libcnb.BuildPlanProvide{ + {Name: "dynatrace-php"}, + }, + Requires: []libcnb.BuildPlanRequire{ + {Name: "dynatrace-php"}, + {Name: "php"}, + {Name: "nginx"}, + }, + }, { Provides: []libcnb.BuildPlanProvide{ {Name: "dynatrace-apache"}, diff --git a/dt/detect_test.go b/dt/detect_test.go index 48fd0fa..479ec95 100644 --- a/dt/detect_test.go +++ b/dt/detect_test.go @@ -29,6 +29,26 @@ import ( var expectedResult = libcnb.DetectResult{ Pass: true, Plans: []libcnb.BuildPlan{ + { + Provides: []libcnb.BuildPlanProvide{ + {Name: "dynatrace-php"}, + }, + Requires: []libcnb.BuildPlanRequire{ + {Name: "dynatrace-php"}, + {Name: "php"}, + {Name: "httpd"}, + }, + }, + { + Provides: []libcnb.BuildPlanProvide{ + {Name: "dynatrace-php"}, + }, + Requires: []libcnb.BuildPlanRequire{ + {Name: "dynatrace-php"}, + {Name: "php"}, + {Name: "nginx"}, + }, + }, { Provides: []libcnb.BuildPlanProvide{ {Name: "dynatrace-apache"},