diff --git a/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/realisations/PresentationLayerDIImpl.kt b/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/realisations/PresentationLayerDIImpl.kt index 3e87595..f20bb47 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/realisations/PresentationLayerDIImpl.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/realisations/PresentationLayerDIImpl.kt @@ -1,10 +1,13 @@ package com.github.insanusmokrassar.PsychomatrixBase.di.realisations import com.github.insanusmokrassar.PsychomatrixBase.di.PresentationLayerDI +import com.github.insanusmokrassar.PsychomatrixBase.di.UseCasesDI import com.github.insanusmokrassar.PsychomatrixBase.presentation.presenters.DatePickerPresenter import com.github.insanusmokrassar.PsychomatrixBase.presentation.presenters.DefaultRealisations.DatePickerPresenterImpl -open class PresentationLayerDIImpl : PresentationLayerDI, UseCasesDIImpl() { +open class PresentationLayerDIImpl( + useCasesDI: UseCasesDI +) : PresentationLayerDI, UseCasesDI by useCasesDI { override val datePickerPresenter: DatePickerPresenter by lazy { DatePickerPresenterImpl( diff --git a/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/realisations/UIDIImpl.kt b/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/realisations/UIDIImpl.kt index 97ed62c..9817d83 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/realisations/UIDIImpl.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/realisations/UIDIImpl.kt @@ -1,7 +1,10 @@ package com.github.insanusmokrassar.PsychomatrixBase.di.realisations +import com.github.insanusmokrassar.PsychomatrixBase.di.PresentationLayerDI import com.github.insanusmokrassar.PsychomatrixBase.di.UIDI -class UIDIImpl : UIDI, PresentationLayerDIImpl() { +class UIDIImpl( + presentationLayerDI: PresentationLayerDI +) : UIDI, PresentationLayerDI by presentationLayerDI { } diff --git a/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/realisations/UseCasesDIImpl.kt b/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/realisations/UseCasesDIImpl.kt index 7915a18..e269595 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/realisations/UseCasesDIImpl.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/realisations/UseCasesDIImpl.kt @@ -1,10 +1,13 @@ package com.github.insanusmokrassar.PsychomatrixBase.di.realisations +import com.github.insanusmokrassar.PsychomatrixBase.di.EntitiesDI import com.github.insanusmokrassar.PsychomatrixBase.di.UseCasesDI import com.github.insanusmokrassar.PsychomatrixBase.domain.UseCases.CalculatePsychomatrixByDate import com.github.insanusmokrassar.PsychomatrixBase.domain.interactors.CalculatePsychomatrixByDateInteractor -open class UseCasesDIImpl : UseCasesDI, EntitiesDIImpl() { +open class UseCasesDIImpl( + entitiesDI: EntitiesDI +) : UseCasesDI, EntitiesDI by entitiesDI { override val calculatePsychomatrixByDate: CalculatePsychomatrixByDate by lazy { CalculatePsychomatrixByDateInteractor()