Configuration

You can alter cbwire's behavior by overriding settings in your config/ColdBox.cfc file.

// File: ./config/ColdBox.cfc

component{
    function configure() {
        moduleSettings = {
            cbwire = {
                "throwOnMissingSetterMethod" : false,
                "componentLocation": "wires"
            }
        };
     }
}

Overriding the module settings is optional. All settings come with a default that is used if no overrides are provided. See Overriding Module Settings in the ColdBox documentation for additional reference.

throwOnMissingSetter

Set as true to throw a WireSetterNotFound exception if the incoming wire request tries to update a property without a setter on our component. Otherwise, missing setters are ignored. Defaults to false.

componentLocation

The relative folder path where the cbwire components are stored. Defaults to wires.

Last updated