Skip to content

Commit

Permalink
Merge pull request #26 from prestalyon/master
Browse files Browse the repository at this point in the history
Add event init to ResetFilter, as in ZfcUser/Form/LoginFilter
  • Loading branch information
pdobrigkeit committed Apr 23, 2014
2 parents 308231b + 4630482 commit bf9668d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/GoalioForgotPassword/Form/ResetFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace GoalioForgotPassword\Form;

use Zend\InputFilter\InputFilter;
use ZfcBase\InputFilter\ProvidesEventsInputFilter as InputFilter;
use GoalioForgotPassword\Options\ForgotOptionsInterface;

class ResetFilter extends InputFilter
Expand Down Expand Up @@ -46,5 +46,7 @@ public function __construct(ForgotOptionsInterface $options)
array('name' => 'StringTrim'),
),
));

$this->getEventManager()->trigger('init', $this);
}
}
4 changes: 4 additions & 0 deletions src/GoalioForgotPassword/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ public function getConfig() {
return include __DIR__ . '/../../config/module.config.php';
}

public function getModuleDependencies() {
return array('ZfcUser', 'ZfcBase');
}

public function getServiceConfig() {
return array(
'invokables' => array(
Expand Down

0 comments on commit bf9668d

Please sign in to comment.