| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 15 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 2 | ||
| Bugs | 1 | Features | 0 | 
| 1 | <?php | ||
| 23 | public function __invoke(ContainerInterface $serviceManager, $requestedName, array $options = null) | ||
| 24 |     { | ||
| 25 |         $options = $serviceManager->get('zfcuser_module_options'); | ||
| 26 | $form = new Form\ChangeEmail(null, $options); | ||
| 27 | |||
| 28 | $form->setInputFilter(new Form\ChangeEmailFilter( | ||
| 29 | $options, | ||
| 30 | new Validator\NoRecordExists(array( | ||
| 31 |                 'mapper' => $serviceManager->get('zfcuser_user_mapper'), | ||
| 32 | 'key' => 'email' | ||
| 33 | )) | ||
| 34 | )); | ||
| 35 | |||
| 36 | return $form; | ||
| 37 | } | ||
| 38 | } | ||
| 39 |