File tree Expand file tree Collapse file tree 2 files changed +6
-53
lines changed
src/main/java/ru/mystamps/web/support/togglz Expand file tree Collapse file tree 2 files changed +6
-53
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 29
29
import org .togglz .console .TogglzConsoleServlet ;
30
30
import org .togglz .core .manager .FeatureManager ;
31
31
import org .togglz .core .manager .FeatureManagerBuilder ;
32
+ import org .togglz .core .repository .cache .CachingStateRepository ;
33
+ import org .togglz .core .repository .jdbc .JDBCStateRepository ;
34
+ import org .togglz .spring .security .SpringSecurityUserProvider ;
32
35
33
36
@ Configuration
34
37
public class TogglzConfig {
@@ -39,7 +42,9 @@ public class TogglzConfig {
39
42
@ Bean
40
43
public FeatureManager getFeatureManager () {
41
44
return new FeatureManagerBuilder ()
42
- .togglzConfig (new FeatureConfig (dataSource ))
45
+ .stateRepository (new CachingStateRepository (new JDBCStateRepository (dataSource )))
46
+ .featureEnum (Features .class )
47
+ .userProvider (new SpringSecurityUserProvider ("CHANGE_FEATURES" ))
43
48
.build ();
44
49
}
45
50
You can’t perform that action at this time.
0 commit comments