You are here

public function AutoExpireFlashBag::set in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Session/Flash/AutoExpireFlashBag.php \Symfony\Component\HttpFoundation\Session\Flash\AutoExpireFlashBag::set()

Registers a message for a given type.

Parameters

string $type:

string|array $message:

Overrides FlashBagInterface::set

File

vendor/symfony/http-foundation/Session/Flash/AutoExpireFlashBag.php, line 139

Class

AutoExpireFlashBag
AutoExpireFlashBag flash message container.

Namespace

Symfony\Component\HttpFoundation\Session\Flash

Code

public function set($type, $messages) {
  $this->flashes['new'][$type] = (array) $messages;
}