Class CrossCuttingLoader
Class CrossCuttingLoader
CrossCuttingLoader enables loading of mockable objects for cross cutting concerns, that were not injected to the current object.
Important: RegisteredObjectsOnly flag must be enabled for unit testing.
- CrossCuttingLoader implements CrossCuttingLoaderInterface
Package: Loaders\CrossCuttingLoader
Category: System
Located at Loaders/CrossCuttingLoader/CrossCuttingLoader.inc.php
Category: System
Located at Loaders/CrossCuttingLoader/CrossCuttingLoader.inc.php
Methods summary
public
object
|
|
public
|
|
public
boolean
|
|
public
|
#
registerObject( string $p_classname, object $object )
In strict mode ($strictModeEnabled=true) this method accepts classes with implemented CrossCuttingObjectInterface only. Otherwise it throws an InvalidArgumentException. |
public
|
|
protected
object
|
|
protected
object
|
|
protected
|
Properties summary
protected
boolean
|
$strictModeEnabled
|
#
true
|
protected
boolean
|
$registeredObjectsOnly
|
#
false
|
protected
array
|
$registeredObjectArrays
|
#
array()
|