*/
class WebShipsimuRegisterCommand extends BaseCommand implements Commandable {
/**
- * Private constructor
+ * Protected constructor
*
* @return void
*/
$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;