$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;