X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=application%2Fship-simu%2Fmain%2Fcommands%2Fweb%2Fclass_WebShipsimuRegisterCommand.php;h=a419393fb379cc4b97305fd579662c0bb39b63c7;hb=6c783b879094b6385da1b0a0b802c779f4870d4a;hp=86b95269e349f59599f06bcadd91a114e98e167a;hpb=b4a01b4e5ea1ce826b6df34f4619f6310c77cd02;p=shipsimu.git diff --git a/application/ship-simu/main/commands/web/class_WebShipsimuRegisterCommand.php b/application/ship-simu/main/commands/web/class_WebShipsimuRegisterCommand.php index 86b9526..a419393 100644 --- a/application/ship-simu/main/commands/web/class_WebShipsimuRegisterCommand.php +++ b/application/ship-simu/main/commands/web/class_WebShipsimuRegisterCommand.php @@ -23,7 +23,7 @@ */ class WebShipsimuRegisterCommand extends BaseCommand implements Commandable { /** - * Private constructor + * Protected constructor * * @return void */ @@ -59,7 +59,8 @@ class WebShipsimuRegisterCommand extends BaseCommand implements Commandable { $controllerInstance = $resolverInstance->getControllerInstance(); // @TODO Add some more pre/post filters to the controller - $controllerInstance->addPreFilter(ObjectFactory::createObjectByName('UserNameValidatorFilter')); + $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('username_validator')); + $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('email_validator')); // Return the prepared instance return $commandInstance;