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