File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 1
1
component accessors = " true" {
2
2
3
3
property name = " wirebox" inject = " wirebox" ;
4
- property name = " environment" inject = " coldbox:setting:environment" default = " development" ;
4
+ property name = " configSettings" inject = " box:configSettings" ;
5
+ property name = " environment" default = " development" ;
5
6
property name = " manager" default = " cfmigrations.models.QBMigrationManager" ;
6
7
property name = " migrationsDirectory" default = " /resources/database/migrations" ;
7
8
property name = " seedsDirectory" default = " /resources/database/seeds" ;
@@ -55,6 +56,16 @@ component accessors="true" {
55
56
initArguments = variables .managerProperties
56
57
);
57
58
}
59
+ if ( variables .configSettings .keyExists ( " environment" ) ) {
60
+ variables .environment = variables .configSettings .environment ;
61
+ }
62
+ }
63
+
64
+ /**
65
+ * Passes through to the manager's isReady method.
66
+ */
67
+ public boolean function isReady () {
68
+ return variables .manager .isReady ();
58
69
}
59
70
60
71
/**
You can’t perform that action at this time.
0 commit comments