@@ -8,6 +8,7 @@ component extends="coldbox.system.web.services.BaseService"{
88
99 /**
1010 * Constructor
11+ * @controller The ColdBox Controller.
1112 */
1213 function init ( required controller ){
1314 setController ( arguments .controller );
@@ -20,7 +21,7 @@ component extends="coldbox.system.web.services.BaseService"{
2021 }
2122
2223 /**
23- * Once configuration loads
24+ * Once configuration loads this method is fired by the service loader.
2425 */
2526 function onConfigurationLoad (){
2627 // Local Configuration data and dependencies
@@ -207,7 +208,7 @@ component extends="coldbox.system.web.services.BaseService"{
207208 }
208209
209210 /**
210- * Does the request context exist in request scope
211+ * Return the flash scope instance in use by the framework.
211212 */
212213 any function getFlashScope (){
213214 return variables .flashScope ;
@@ -230,11 +231,11 @@ component extends="coldbox.system.web.services.BaseService"{
230231 var flashPath = " " ;
231232
232233 // Verify Flash decisions
233- if ( variables .flashData .scope == " session" and ! isDefined ( " session " ) ){
234+ if ( variables .flashData .scope == " session" and ! getApplicationMetadata (). sessionManagement ){
234235 log .error ( " Flash RAM was set to use session but session is undefined, changing it to cache for you so we don't blow up." );
235236 variables .flashData .scope = " cache" ;
236237 }
237- if ( variables .flashData .scope == " client" and ! isDefined ( " client " ) ){
238+ if ( variables .flashData .scope == " client" and ! getApplicationMetadata (). clientManagement ){
238239 log .error ( " Flash RAM was set to use client but client is undefined, changing it to cache for you so we don't blow up." );
239240 variables .flashData .scope = " cache" ;
240241 }
0 commit comments