Skip to content

Commit d119017

Browse files
authored
Merge pull request #233 from mrigsby/fix-tests-linux
cbsecurity wirebox fix for component.cfc
2 parents 353eddc + c6d51fc commit d119017

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

models/Component.cfc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ component output="true" accessors="true" {
9494
/*
9595
Inject cbSecurity if installed and active
9696
*/
97-
if( _wirebox.getInstance( "coldbox:moduleService" ).isModuleActive( 'cbSecurity' ) ){
98-
variables._cbSecurity = _wirebox.getInstance("@cbsecurity");
99-
variables._cbSecurityEnabled = true
97+
if( application.cbcontroller.getWireBox().getInstance( "coldbox:moduleService" ).isModuleActive( 'cbSecurity' ) ){
98+
variables._cbSecurity = application.cbcontroller.getWireBox().getInstance("cbsecurity@cbsecurity");
99+
variables._cbSecurityEnabled = true;
100100
}
101101

102102
/*

0 commit comments

Comments
 (0)