SwitchUserEvent
class SwitchUserEvent extends Event
SwitchUserEvent.
Methods
bool | isPropagationStopped() Returns whether further event listeners should be triggered. | from Event |
stopPropagation() Stops the propagation of the event to further event listeners. | from Event | |
__construct(Request $request, UserInterface $targetUser, TokenInterface $token = null) | ||
Request | getRequest() | |
UserInterface | getTargetUser() | |
TokenInterface|null | getToken() | |
setToken(TokenInterface $token) |
Details
bool isPropagationStopped()
Returns whether further event listeners should be triggered.
Return Value
bool | Whether propagation was already stopped for this event |
See also
Event::stopPropagation() |
stopPropagation()
Stops the propagation of the event to further event listeners.
If multiple event listeners are connected to the same event, no further event listener will be triggered once any trigger calls stopPropagation().
__construct(Request $request, UserInterface $targetUser, TokenInterface $token = null)
Parameters
Request | $request | |
UserInterface | $targetUser | |
TokenInterface | $token |
Request getRequest()
Return Value
Request |
UserInterface getTargetUser()
Return Value
UserInterface |
TokenInterface|null getToken()
Return Value
TokenInterface|null |
setToken(TokenInterface $token)
Parameters
TokenInterface | $token |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Security/Http/Event/SwitchUserEvent.html