コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function getStoredToken($clear = false)
 {
     if ($this->storage->hasData(self::STORE_KEY)) {
         $token = $this->storage->getData(self::STORE_KEY);
         if ($clear) {
             $this->storage->removeData(self::STORE_KEY);
         }
         return $token;
     }
     return;
 }
コード例 #2
0
ファイル: CartContext.php プロジェクト: aleherse/Sylius
 /**
  * {@inheritdoc}
  */
 public function resetCurrentCartIdentifier()
 {
     $this->storage->removeData(self::STORAGE_KEY);
 }