/** * Key/value setter * * @param string $key * @param string $value * @return void */ public function set($key, $value) { if (empty($key)) { return; } if (!$this->__session->has($this->key, $key)) { $this->__session->setChild($this->key, $key, []); } $_SESSION[$this->key][$key][] = $value; }
/** * Session helper * * @return \Eco\Factory\Session */ public static final function session() { return Session::getInstance(); }