コード例 #1
0
 /**
  * Retrieve a value from a cookie.
  *
  * @param string $name
  * @param string|null $default The default value to return if no value could be found for the given $name.
  * @return string|null
  */
 public function getCookie($name, $default = null)
 {
     return $this->reader->getCookie($name, $default);
 }
コード例 #2
0
 /**
  * Get cookie with logout reason code
  *
  * @return string|int
  */
 public function getLogoutReasonCookie()
 {
     return (int) $this->cookieReader->getCookie(self::LOGOUT_REASON_CODE_COOKIE_NAME, -1);
 }