[ColdboxBE - 4.0] relax does not work with 4.0

I tried to refactor relax module myself according to the compat 4.0 guide.

I don’t know how to refactor this argument in DSLService.cfc:

This is the error i’m getting:

Type: Builder.BuildCFCDependencyException
Messages: Error building: DSLService@relax -> Element CONFIGBEAN is undefined in ARGUMENTS. with constructor arguments: {configBean={null},logBox={[(Component=coldbox.system.logging.LogBox)]}}

Luis, I noticed forgebox says relax and other modules were last updated today by you. But after re-installing i see that this module is not yet refactor for 4.0.

Is this in the works?

Please see:
http://wiki.coldbox.org/wiki/Compatibility:4.0.0.cfm#WireBox_DSL_Namespaces

“The configbean CFC doesn’t exist any longer, but the same data is available as a struct with coldbox:configSettings

That means you’ll need to refactor usage of that variable to just use the struct instead of setters on an object.

> Luis, I noticed forgebox says relax and other modules were last updated today by you

It wasn’t really updated today. ForgeBox has a “feature” where downloading or installing a package increments the download or install count and also updates the updateDate at the same time. The fix has been deferred since we’re going to rewrite ForgeBox 2.0 “soon”.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

FYI, I also put in this ticket since you should have gotten a better error message explaining that DSL didn’t exist:

https://ortussolutions.atlassian.net/browse/COLDBOX-418

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

thanks brad. i’ll keep working on the refactor of relax. its my first time looking at the inner workings of this module and there were some concepts I didnt quite understand.