X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Ffactories%2Fuser%2Fclass_UserFactory.php;h=bbf0b78ce369c3fa159eeddf0bd7be63d1e59d01;hp=d56ab74f798b596443cb4c2d81a5d7655768c989;hb=refs%2Fheads%2Fmaster;hpb=a60894f1d6ef33613d2d0351075aa07aa257f304 diff --git a/framework/main/classes/factories/user/class_UserFactory.php b/framework/main/classes/factories/user/class_UserFactory.php index d56ab74f..9aeb0588 100644 --- a/framework/main/classes/factories/user/class_UserFactory.php +++ b/framework/main/classes/factories/user/class_UserFactory.php @@ -4,8 +4,8 @@ namespace Org\Mxchange\CoreFramework\Factory\User; // Import framework stuff use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap; -use Org\Mxchange\CoreFramework\Factory\ObjectFactory; -use Org\Mxchange\CoreFramework\Registry\GenericRegistry; +use Org\Mxchange\CoreFramework\Factory\BaseFactory; +use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry; use Org\Mxchange\CoreFramework\Request\Requestable; /** @@ -13,7 +13,7 @@ use Org\Mxchange\CoreFramework\Request\Requestable; * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2023 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.shipsimu.org * @@ -30,13 +30,13 @@ use Org\Mxchange\CoreFramework\Request\Requestable; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class UserFactory extends ObjectFactory { +class UserFactory extends BaseFactory { /** * Protected constructor * * @return void */ - protected function __construct () { + private function __construct () { // Call parent constructor parent::__construct(__CLASS__); } @@ -49,7 +49,7 @@ class UserFactory extends ObjectFactory { */ public static final function createUserByRequest (Requestable $requestInstance) { // Get registry instance - $registryInstance = GenericRegistry::getRegistry(); + $registryInstance = ObjectRegistry::getRegistry('factory'); // Do we have an instance in the registry? if ($registryInstance->instanceExists('user')) {