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
Array
representation 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
true
if the passed value is a valid scope reference.Parameters:
Name Type Description scope
string The value to evaluates.
Returns:
true
if the passed value is a valid scope reference.