Download the PHP package trash-panda/m2-message-manager-remover without Composer
On this page you can find all versions of the php package trash-panda/m2-message-manager-remover. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download trash-panda/m2-message-manager-remover
More information about trash-panda/m2-message-manager-remover
Files in trash-panda/m2-message-manager-remover
Package m2-message-manager-remover
Short Description Remove messages from the message manager
License MIT
Informations about the package m2-message-manager-remover
Magento 2 Message Manager Remover
A small utility to remove messages added to the message manager
Installation
Usage
Inject \TrashPanda\MessageManagerRemover\Remover
wherever you need to remove a message. The class has two public
methods for removing messages.
removeLastAddedMessage
will remove the last added message or throw a \RuntimeException if one does not exist
removeByRegex
will remove all message matching a given preg_match
compatible regex. It will return the number of messages removed
'removeAll' will remove all messages from the message manager