Skip to content

Commit

Permalink
Remove triggers that are unsuable.
Browse files Browse the repository at this point in the history
The only way to use them was via the shared service manager. But in ZF3
this manager is only instantiated after construction. Thus this has no
function anymore.
  • Loading branch information
Roel van Duijnhoven committed Nov 27, 2017
1 parent aaff500 commit 1c4c15e
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions src/ZfcUser/Form/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ public function __construct($name = null)
//$csrf = new Element\Csrf('csrf');
//$csrf->getValidator()->setTimeout($this->getRegistrationOptions()->getUserFormTimeout());
//$this->add($csrf);

$this->getEventManager()->trigger('init', $this);
}

public function init()
Expand Down
2 changes: 0 additions & 2 deletions src/ZfcUser/Form/ChangeEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ public function __construct($name, AuthenticationOptionsInterface $options)
'type' => 'submit'
),
));

$this->getEventManager()->trigger('init', $this);
}

/**
Expand Down
2 changes: 0 additions & 2 deletions src/ZfcUser/Form/ChangePassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ public function __construct($name, AuthenticationOptionsInterface $options)
'type' => 'submit'
),
));

$this->getEventManager()->trigger('init', $this);
}

/**
Expand Down
2 changes: 0 additions & 2 deletions src/ZfcUser/Form/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ public function __construct($name, AuthenticationOptionsInterface $options)
$this->add($submitElement, array(
'priority' => -100,
));

$this->getEventManager()->trigger('init', $this);
}

/**
Expand Down
2 changes: 0 additions & 2 deletions src/ZfcUser/Form/LoginFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,5 @@ public function __construct(AuthenticationOptionsInterface $options)
array('name' => 'StringTrim'),
),
));

$this->getEventManager()->trigger('init', $this);
}
}
2 changes: 0 additions & 2 deletions src/ZfcUser/Form/RegisterFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ public function __construct($emailValidator, $usernameValidator, RegistrationOpt
),
),
));

$this->getEventManager()->trigger('init', $this);
}

public function getEmailValidator()
Expand Down

0 comments on commit 1c4c15e

Please sign in to comment.