Exemplo n.º 1
0
 /**
  * Return a session variable
  *
  * @param string $strKey The variable name
  *
  * @return mixed The variable value
  */
 public function get($strKey)
 {
     // Map the referer (see #281)
     if (in_array($strKey, $this->mappedKeys)) {
         return $this->session->get($strKey);
     }
     return $this->sessionBag->get($strKey);
 }
Exemplo n.º 2
0
 /**
  * Return a session variable
  *
  * @param string $strKey The variable name
  *
  * @return mixed The variable value
  */
 public function get($strKey)
 {
     @trigger_error('Using Session::get() has been deprecated and will no longer work in Contao 5.0. Use the Symfony session via the container instead.', E_USER_DEPRECATED);
     // Map the referer (see #281)
     if ($strKey == 'referer' || $strKey == 'popupReferer') {
         return $this->session->get($strKey);
     }
     return $this->sessionBag->get($strKey);
 }
 public function get($key)
 {
     $this->bag->get($key);
 }