Webiny\Component\Http\Session::get PHP 메소드

get() 공개 메소드

If key doesn't not exist, $value will be returned and assigned under that key.
public get ( string $key, mixed $value = null ) : string
$key string Key for which you wish to get the value.
$value mixed Default value that will be returned if $key doesn't exist.
리턴 string Value of the given $key.
    public function get($key, $value = null)
    {
        $return = $this->sessionBag->key($key, $value, true);
        $_SESSION[$key] = $return;
        return $return;
    }