The Scope Interface
1
<cfinterface hint="The main interface to produce WireBox storage scopes">
2
3
<--- init --->
4
<cffunction name="init" output="false" access="public" returntype="any" hint="Configure the scope for operation and returns itself" colddoc:generic="wirebox.system.ioc.scopes.IScope">
5
<cfargument name="injector" type="any" required="true" hint="The linked WireBox injector" colddoc:generic="wirebox.system.ioc.Injector"/>
6
</cffunction>
7
8
<--- getFromScope --->
9
<cffunction name="getFromScope" output="false" access="public" returntype="any" hint="Retrieve an object from scope or create it if not found in scope">
10
<cfargument name="mapping" type="any" required="true" hint="The object mapping" colddoc:generic="wirebox.system.ioc.config.Mapping"/>
11
<cfargument name="initArguments" type="any" required="false" hint="The constructor structure of arguments to passthrough when initializing the instance" colddoc:generic="struct"/>
12
13
</cffunction>
14
15
</cfinterface>
Copied!
Copy link