From: Roland Häder Date: Wed, 27 Jan 2010 01:48:25 +0000 (+0000) Subject: The ObjectFactory may now be extended e.g. done in hub project by a NodeStateFactory... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e8f16009f46e89d7fd9d79f6e5c4d1982a37f9f8;p=core.git The ObjectFactory may now be extended e.g. done in hub project by a NodeStateFactory class --- diff --git a/inc/classes/main/factories/objects/class_ObjectFactory.php b/inc/classes/main/factories/objects/class_ObjectFactory.php index 4a6f0d42..1b51c84c 100644 --- a/inc/classes/main/factories/objects/class_ObjectFactory.php +++ b/inc/classes/main/factories/objects/class_ObjectFactory.php @@ -30,11 +30,12 @@ class ObjectFactory extends BaseFactory { /** * Protected constructor * + * @param $className Name of this class * @return void */ - protected function __construct () { + protected function __construct ($className = __CLASS__) { // Call parent constructor - parent::__construct(__CLASS__); + parent::__construct($className); } /**