Ejemplo n.º 1
0
 /**
  * Adds the given notifier.
  *
  * @param \Cartalyst\Alerts\Notifiers\NotifierInterface $notifier
  * @return $this 
  * @static 
  */
 public static function addNotifier($notifier)
 {
     return \Cartalyst\Alerts\Alerts::addNotifier($notifier);
 }
Ejemplo n.º 2
0
 /**
  * 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));
     }
 }