Skip to content

Instantly share code, notes, and snippets.

@elpete
Created March 8, 2017 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elpete/31661af40e9e20ae9fed1ccb3cd791ae to your computer and use it in GitHub Desktop.
Save elpete/31661af40e9e20ae9fed1ccb3cd791ae to your computer and use it in GitHub Desktop.
WireBox Clear Mapping
<!--- clearMapping --->
<cffunction name="clearMapping" output="false" access="public" returntype="any" hint="Clear a mapping by name if it exists" colddoc:generic="struct">
<cfargument name="name" required="true" hint="The name of the mapping to retrieve"/>
<cfset structDelete( instance.mappings, name ) />
<cfreturn this>
</cffunction>
<!--- Usage --->
<!--- <cfset application.wirebox.getBinder().clearMapping( "mappingName" ) /> --->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment