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
getObject( string $p_classname )
: object
In strict mode ($strictModeEnabled=true) this method accepts classes with implemented CrossCuttingObjectInterface only. Otherwise it throws an InvalidArgumentException.
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.