/** * 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); }
/** * Return array of available containers. * * @return array * @static */ public static function getContainers() { return \Krucas\Notification\Notification::getContainers(); }