class FlashMessageService (View source)

Properties

protected ObjectManagerInterface $objectManager
protected RequestPatternResolver $requestPatternResolver
protected array $flashMessageContainerConfiguration

Methods

ResponseInterface
persistFlashMessages(ResponseInterface $response)

Persist all FlashMessageContainers that have been instantiated during the current request cycle

getFlashMessageContainerForRequest(ActionRequest $request)

Load the FlashMessageContainer for the given request

Details

ResponseInterface persistFlashMessages(ResponseInterface $response)

Persist all FlashMessageContainers that have been instantiated during the current request cycle

Parameters

ResponseInterface $response

Return Value

ResponseInterface

FlashMessageContainer getFlashMessageContainerForRequest(ActionRequest $request)

Load the FlashMessageContainer for the given request

Parameters

ActionRequest $request

Return Value

FlashMessageContainer

Exceptions

InvalidFlashMessageConfigurationException
NoRequestPatternFoundException