get('zfcuser_module_options'); $userMapper = $serviceManager->get('zfcuser_user_mapper'); $emailValidator = new NoRecordExists(array( 'mapper' => $userMapper, 'key' => 'email', )); $inputFilter = new ChangeEmailFilter( $options, $emailValidator ); $form = new ChangeEmail(null, $options); $form->setInputFilter($inputFilter); return $form; } }