mirror of
https://github.com/GayPizzaSpecifications/foundation.git
synced 2025-08-28 00:41:31 +00:00
Add S3 support to backups, fixes #7.
This commit is contained in:
@ -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())
|
||||
}
|
||||
|
Reference in New Issue
Block a user