Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function __invoke(ContainerInterface $serviceManager, $requestedName, array $options = null) |
||
13 | { |
||
14 | $options = $serviceManager->get('lmcuser_module_options'); |
||
15 | $form = new Form\ChangeEmail(null, $options); |
||
16 | |||
17 | $form->setInputFilter( |
||
18 | new Form\ChangeEmailFilter( |
||
19 | $options, |
||
20 | new Validator\NoRecordExists( |
||
21 | array( |
||
22 | 'mapper' => $serviceManager->get('lmcuser_user_mapper'), |
||
23 | 'key' => 'email' |
||
24 | ) |
||
25 | ) |
||
26 | ) |
||
27 | ); |
||
28 | |||
29 | return $form; |
||
30 | } |
||
31 | } |
||
32 |