Add Session Flash Bag Message

@param string            $message
@param string            $type
@param null|string|false $translationDomain
167546
private function addSessionFlashBagMessage($message, $type = Bootstrap4::STATE_SUCCESS, $translationDomain = null)
    {
        if (false !== $translationDomain) {
            $message = $this->getTranslator()->trans($message, [], $translationDomain);
        }

        $this->getSession()->getFlashBag()->add($type, $message);
    }
402838
public function addMessageType(\BisonLab\SakonninBundle\Entity\MessageType $message_types)
    {
        $this->message_types[] = $message_types;

        return $this;
    }
1190760
public function set($message, $type = 'success') {
        $key = self::BANDAMA_FLASH_KEY.'_'.$type;
        $this->session->set($key, $message);
    }
365229
public function addMessage($messages, $type = 'info')
    {
        $this->session->getFlashBag()->add($messages, $type);

        return $this;
    }
680277
protected function add($type, $message, ...$text): void
    {
        $this->getMessagesStore()[$type][] = Translator::translate($message, ...$text);
    }
1289608
public function addMessage($text, $type = null)
    {
        $this->set(null, new \OtherCode\FController\Components\Messages\Message($text, $type));
    }
161525
protected function add($type, $msg, array $context)
	{
		if (!isset($context['attrName']) && isset($this->attrName))
		{
			$context['attrName'] = $this->attrName;
		}

		if (!isset($context['tag']) && isset($this->tag))
		{
			$context['tag'] = $this->tag;
		}

		$this->logs[] = [$type, $msg, $context];
	}
275762
public function get($type, $domain = null)
    {
        $this->handle($domain);

        return $this->getSession()->getFlashBag()->get($type);
    }
612239
public function message($type, $message)
    {
        if (isset($this->cssClasses[$type])) {
            $html = '<div class="%s">%s</div>';
            $this->messages[] = sprintf($html, $this->cssClasses[$type], $message);
            $this->session->set($this->flashKey, $this->messages);
        }
    }
1052528
public function flash($message, $type = null, array $options = [])
    {
        $this->session->flash([
            $this->getPrefixedName('message') => $message,
            $this->getPrefixedName('type')    => $type ?: '',
            $this->getPrefixedName('options') => json_encode($options),
        ]);

        return $this;
    }
839170
protected function addFlashMessage($type, $transKey, $transOpts = array(), $domain = 'messages')
    {
        $this->get('session')
            ->getFlashBag()
            ->add(
                $type,
                $this->get('translator')->trans($transKey, $transOpts, $domain)
            );
    }
1160368
public function addFlash($type, $message)
    {
        if (!in_array($type, self::$flashTypes)) {
            throw new InvalidArgumentException(sprintf(
                'Invalid flash message type `%s`, valid type are %s', $type, implode(', ', self::$flashTypes)
            ));
        }

        $this['session']->getFlashBag()->add($type, $message);

        return $this;
    }
642177
public function setFlash(string $message, string $type = 'info')
    {
        return $this
            ->set('page', 'flash', 'message', $message)
            ->set('page', 'flash', 'type', $type);
    }
379143
public function notification(string $title, string $message, string $type = 'default') : object
    {
        $id = $this->getParameterId('flash');
        $messages = $this->getPresenter()->getFlashSession()->$id;

        $messages[] = $flash = (object) $this->createNotification($title, $message, $type);

        $this->getTemplate()->flashes = $messages;
        $this->getPresenter()->getFlashSession()->$id = $messages;

        return $flash;
    }
1237572
protected function addFlash(string $type, $message): void
    {
        (new Session())->getFlashBag()->set($type, $message);
    }
804728
public function add($type, $message)
    {
        if ($this->flashBag) {
            $this->flashBag->add($type, $message);

            return;
        }
        $this->flashes[$type][] = $message;
    }
832250
public function notice($message, $type = null)
  {
    $type = is_null($type)
      ? 'info'
      : (is_bool($type)
        ? ($type
          ? 'success'
          : 'error')
        : $type);

    $this->getSession()->getFlashBag()->add($type, $message);

    return $this;
  }