Add S3 support to backups, fixes #7.

This commit is contained in:
Logan Gorence
2021-12-24 00:43:44 +00:00
parent da820b8a0d
commit fca1db8802
5 changed files with 126 additions and 16 deletions

View File

@ -24,13 +24,19 @@ abstract class FoundationPlugin : JavaPlugin() {
features = createFeatures()
module = createModule()
// TODO: If we have another plugin using this class, we may need to use context isolation.
// TODO: If we have another plugin using Koin, we may need to use context isolation and ensure
// it uses the same context so they can fetch stuff from us.
// https://insert-koin.io/docs/reference/koin-core/context-isolation
pluginApplication = startKoin {
modules(pluginModule)
modules(module)
}
// This is probably a bit of a hack.
pluginApplication.modules(module {
single { pluginApplication }
})
features.forEach {
pluginApplication.modules(it.module())
}