Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Replaced deprecated triggerUntil() calls with trigger()
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Wolf committed Aug 10, 2015
1 parent 586eeb0 commit fbcb5c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Detail/Auth/Identity/Adapter/BaseAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function authenticate()
$events = $this->getEventManager();

$preEvent = $this->prepareEvent(Event\IdentityAdapterEvent::EVENT_PRE_AUTHENTICATE, $preEventParams);
$eventResults = $events->triggerUntil($preEvent, function ($result) {
$eventResults = $events->trigger($preEvent, function ($result) {
// Stop the execution when a listeners returns false
return ($result === false);
});
Expand Down
2 changes: 1 addition & 1 deletion src/Detail/Auth/Identity/IdentityProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public function authenticate(Adapter\AdapterInterface $adapter = null)
$events = $this->getEventManager();

$preEvent = $this->prepareEvent(Event\IdentityProviderEvent::EVENT_PRE_AUTHENTICATE, $preEventParams);
$eventResults = $events->triggerUntil($preEvent, function ($result) {
$eventResults = $events->trigger($preEvent, function ($result) {
/** @todo Give listeners the opportunity to provide an identity (in which case we wouldn't continue with authentication) */
// Stop the execution when a listeners returns false
return ($result === false);
Expand Down

0 comments on commit fbcb5c7

Please sign in to comment.