示例#1
0
 /**
  * Flash used container names.
  *
  * @param Notification $notification
  * @return void
  */
 protected function flashContainerNames(Notification $notification)
 {
     $names = array();
     foreach ($notification->getContainers() as $container) {
         $names[] = $container->getName();
     }
     $this->getSession()->flash($this->getConfig()->get('notification.session_prefix') . 'containers', $names);
 }
示例#2
0
 /**
  * Return array of available containers.
  *
  * @return array 
  * @static 
  */
 public static function getContainers()
 {
     return \Krucas\Notification\Notification::getContainers();
 }