Skip to content

Commit

Permalink
use correct injector module
Browse files Browse the repository at this point in the history
  • Loading branch information
DonatJR committed Nov 4, 2018
1 parent 38afa60 commit f7bd72e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package de.htwg.se.sudoku.model.fileIoComponent.fileIoMongoDBImpl

import com.google.inject.{Guice, Inject}
import com.google.inject.name.{Named, Names}
import de.htwg.se.sudoku.{MongoDBModule, SudokuModule}
import de.htwg.se.sudoku.{MongoDBModule}
import de.htwg.se.sudoku.model.fileIoComponent.FileIOInterface
import de.htwg.se.sudoku.model.gridComponent.GridInterface
import net.codingwell.scalaguice.InjectorExtensions.ScalaInjector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package de.htwg.se.sudoku.model.fileIoComponent.fileIoSlickImpl

import com.google.inject.{Guice, Inject}
import com.google.inject.name.{Named, Names}
import de.htwg.se.sudoku.SudokuModule
import de.htwg.se.sudoku.{SlickModule}
import de.htwg.se.sudoku.model.database.{Cell, Grid}
import de.htwg.se.sudoku.model.fileIoComponent.FileIOInterface
import de.htwg.se.sudoku.model.gridComponent.GridInterface
Expand Down Expand Up @@ -39,7 +39,7 @@ class FileIO @Inject()(@Named("H2Url") url: String, @Named("H2User") dbUser: Str
var gridOption: Option[GridInterface] = None

Try {
val injector = Guice.createInjector(new SudokuModule)
val injector = Guice.createInjector(new SlickModule)

val grids = TableQuery[Grid]
val cells = TableQuery[Cell]
Expand Down

0 comments on commit f7bd72e

Please sign in to comment.