Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2089 migration: add missing binding for case number actor #2104

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.thp.thehive.migration.th4

import akka.actor.ActorSystem
import akka.actor.typed.{ActorRef => TypedActorRef}
import akka.actor.typed.Scheduler
import akka.stream.Materializer
import com.google.inject.{Guice, Injector => GInjector}
Expand Down Expand Up @@ -63,6 +64,7 @@ object Output {
bind[Environment].toInstance(Environment.simple())
bind[ApplicationLifecycle].to[DefaultApplicationLifecycle]
bind[Schema].toProvider[TheHiveCortexSchemaProvider]
bind[TypedActorRef[CaseNumberActor.Request]].annotatedWithName("case-number-actor").toProvider[CaseNumberActorProvider]
configuration.get[String]("storage.provider") match {
case "localfs" => bind(classOf[StorageSrv]).to(classOf[LocalFileSystemStorageSrv])
case "database" => bind(classOf[StorageSrv]).to(classOf[DatabaseStorageSrv])
Expand Down