/** * Adds the given notifier. * * @param \Cartalyst\Alerts\Notifiers\NotifierInterface $notifier * @return $this * @static */ public static function addNotifier($notifier) { return \Cartalyst\Alerts\Alerts::addNotifier($notifier); }
/** * Creates and adds a new flash notifier. * * @param \Cartalyst\Alerts\Alerts $alerts * @return void */ protected function createFlashNotifier($alerts) { if ($session = $this->createSession()) { $alerts->addNotifier(new FlashNotifier('flash', static::$config, $session)); } }