Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
Integration tests proof that it will work with both built-in session guard or any other custom guard whether it has a dispatcher or not.
Note : some build-in guards like Token guard does dispatch any events, hence there is no
setDispatcher
method or any dispatcher on it.So there are 2 types of guards.
which I think a contract (interface) is missing here, in order to mark the SessionGuard class or any other custom guard as an event dispatching guard, and enforce
setDispatcher
andgetDispatcher
methods on them.)So the clunky
method_exists
check won't be needed.Re-submit: #28131
fixed: #27451