| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function createService(ServiceLocatorInterface $serviceManager) |
||
| 17 | { |
||
| 18 | /* @var $options Options\ModuleOptions */ |
||
| 19 | $options = $serviceManager->get('zfcuser_module_options'); |
||
| 20 | |||
| 21 | $userMapper = $serviceManager->get('zfcuser_user_mapper'); |
||
| 22 | |||
| 23 | $emailValidator = new NoRecordExists(array( |
||
| 24 | 'mapper' => $userMapper, |
||
| 25 | 'key' => 'email', |
||
| 26 | )); |
||
| 27 | |||
| 28 | $inputFilter = new ChangeEmailFilter( |
||
| 29 | $options, |
||
| 30 | $emailValidator |
||
| 31 | ); |
||
| 32 | |||
| 33 | $form = new ChangeEmail(null, $options); |
||
| 34 | $form->setInputFilter($inputFilter); |
||
| 35 | |||
| 36 | return $form; |
||
| 37 | } |
||
| 38 | } |
||
| 39 |