-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AdapterChain does not reset the chained adapters #74
Comments
holly cow)) i made next, not clear, but works:
|
Thanks @lon9man, No one, I think, is monitoring ZfcUser. I am not monitoring it. But at the same time, we should go through the list of open issues/PR and import any relevant items into this repository. The ZF-Commons team should mark the repos as archived. |
When I made issue i migrated to Zend 3, so Laminas was unknown for me, especially this package. |
Are you using LmcUser now? Typically, when I consider using a repo, I always looked for signs of activity. If the last commit was a couple of years ago, it's a sign that no one is maintaining it. |
@visto9259,
i also do this. |
Signed-off-by: Eric Richer [email protected] <[email protected]>
The
resetAdapters
method of theAdapterChain
authentication adapter does not reset the chained adapters.The method assumes that the chained adapters are attached to the shared event manager but this is not the case. Chained adapters are attached to the event manager.
The code:
There could be cases where the session container where the chained adapters are storing data may not have been clear when starting the login sequence.
Suggested solution is to add a new event
'reset'
and trigger the event (similar tologout
). Chained adapters would need to implementreset
event listeners.By the way, chained adapters should implement the
ListenerAggregateInterface
such that there is one call to theattach()
method and let the adapter set its listeners as needed.Same as ZF-Commons/ZfcUser#689
The text was updated successfully, but these errors were encountered: