The enumeration list of all object scopes.
Members
-
<static, constant> PROTOTYPE :string
-
Defines the scope of a single object definition to any number of object instances.
Type:
- string
- Default Value:
-
- prototype
-
<static, constant> SCOPES :Array
-
The
Arrayrepresentation of all object scopes constants.Type:
- Default Value:
-
- singleton
-
<static, constant> SINGLETON :string
-
Defines the scope of a single object definition to a single object instance per IoC container.
Type:
- string
- Default Value:
-
- singleton
Methods
-
<static> validate(scope)
-
Returns
trueif the passed value is a valid scope reference.Parameters:
Name Type Description scopestring The value to evaluates.
Returns:
trueif the passed value is a valid scope reference.