-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: not loading aluna properties during scope creation
chore: 0.0.12_5.0.0-alpha.9
- Loading branch information
Showing
4 changed files
with
14 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
...otlin/io/viascom/discord/bot/starter/configuration/scope/ScopeBeanFactoryPostProcessor.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
package io.viascom.discord.bot.starter.configuration.scope | ||
|
||
import io.viascom.discord.bot.starter.property.AlunaProperties | ||
import org.springframework.beans.factory.config.BeanFactoryPostProcessor | ||
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory | ||
import org.springframework.context.ConfigurableApplicationContext | ||
|
||
open class ScopeBeanFactoryPostProcessor( | ||
private val context: ConfigurableApplicationContext, | ||
private val alunaProperties: AlunaProperties | ||
private val context: ConfigurableApplicationContext | ||
) : BeanFactoryPostProcessor { | ||
|
||
override fun postProcessBeanFactory(factory: ConfigurableListableBeanFactory) { | ||
factory.registerScope("command", CommandScope(context, alunaProperties)) | ||
factory.registerScope("command", CommandScope(context)) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters