示例#1
0
 /**
  * @param string $dottedKey
  * @param mixed  $default
  *
  * @return mixed
  */
 public static function get($dottedKey, $default = null)
 {
     if (self::$flashedVars) {
         $flashedValue = Arr::get(self::$flashedVars, $dottedKey, '~no~flashed~value~');
         if ($flashedValue !== '~no~flashed~value~') {
             return $flashedValue;
         }
     }
     return self::$storage->get($dottedKey, $default);
 }
示例#2
0
 public static function __callStatic($name, $arguments)
 {
     $key = isset($arguments[0]) ? $arguments[0] : null;
     $default = isset($arguments[1]) ? $arguments[1] : null;
     return Arr::get(static::get($name), $key, $default);
 }
示例#3
0
 /**
  * @param string $dottedKey
  * @param mixed  $default
  *
  * @return mixed
  */
 public function get($dottedKey, $default = null)
 {
     return Arr::get($_SESSION, $dottedKey, $default);
 }