Esempio n. 1
0
 public static function getFlashes()
 {
     self::$init();
     $copy = self::$flashes;
     self::$flashes = array();
     return $copy;
 }
Esempio n. 2
0
 public static function getFlashes()
 {
     self::initFlashes();
     $tmp = self::$flashes;
     self::$flashes = [];
     return $tmp;
 }
Esempio n. 3
0
 /**
  * Get flash messages and clear them.
  * @return array flash messages
  */
 public static function getFlashes()
 {
     $copy = self::$flashes;
     self::$flashes = null;
     return $copy;
 }