Created
March 8, 2017 15:42
-
-
Save elpete/31661af40e9e20ae9fed1ccb3cd791ae to your computer and use it in GitHub Desktop.
WireBox Clear Mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- 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