X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=application%2Fship-simu%2Fmain%2Fcommands%2Fweb%2Fclass_WebShipsimuRegisterCommand.php;h=cc9b0b7193e4fa1902503f9917fa5c0f71196c1c;hp=0940b79630a8c71dc65494c68983f9b873ef75b6;hb=b848cab53db89342f0a854a00be91cadbcff2967;hpb=425cd4dda06724de295f7762c27efc2e539c2a53 diff --git a/application/ship-simu/main/commands/web/class_WebShipsimuRegisterCommand.php b/application/ship-simu/main/commands/web/class_WebShipsimuRegisterCommand.php index 0940b79..cc9b0b7 100644 --- a/application/ship-simu/main/commands/web/class_WebShipsimuRegisterCommand.php +++ b/application/ship-simu/main/commands/web/class_WebShipsimuRegisterCommand.php @@ -59,10 +59,10 @@ class WebShipsimuRegisterCommand extends BaseCommand implements Commandable { $controllerInstance = $resolverInstance->getControllerInstance(); // @TODO Add some more pre/post filters to the controller - $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('email_validator')); - $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('username_validator')); - $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('password_validator')); - $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('rules_accepted_filter')); + $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('email_validator_class')); + $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('username_validator_class')); + $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('password_validator_class')); + $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('rules_accepted_class')); // Return the prepared instance return $commandInstance; @@ -77,7 +77,7 @@ class WebShipsimuRegisterCommand extends BaseCommand implements Commandable { */ public function execute (Requestable $requestInstance, Responseable $responseInstance) { // First get a UserRegistration instance - $registerInstance = ObjectFactory::createObjectByConfiguredName('user_registration'); + $registerInstance = ObjectFactory::createObjectByConfiguredName('user_registration_class'); // First set request and response instance $registerInstance->setRequestInstance($requestInstance);