public function saveState() { $this->cartManager->save(); $this->environment->save(); }
/** * @param int[] $list * * @return Website_OnlineShop_Demo_OnlineShop_RecentlyViewedProducts */ protected function saveList(array $list) { $this->env->setCustomItem($this->getNamespace(), $list); $this->env->save(); return $this; }