當前位置: 首頁>>代碼示例>>PHP>>正文


PHP AbstractToken::unserialize方法代碼示例

本文整理匯總了PHP中Symfony\Component\Security\Core\Authentication\Token\AbstractToken::unserialize方法的典型用法代碼示例。如果您正苦於以下問題:PHP AbstractToken::unserialize方法的具體用法?PHP AbstractToken::unserialize怎麽用?PHP AbstractToken::unserialize使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Symfony\Component\Security\Core\Authentication\Token\AbstractToken的用法示例。


在下文中一共展示了AbstractToken::unserialize方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: unserialize

 /**
  * {@inheritDoc}
  */
 public function unserialize($serialized)
 {
     list($this->accessToken, $this->resourceOwnerName, $parent, ) = unserialize($serialized);
     parent::unserialize($parent);
 }
開發者ID:rdohms,項目名稱:HWIOAuthBundle,代碼行數:8,代碼來源:OAuthToken.php

示例2: unserialize

 public function unserialize($str)
 {
     list($this->originalToken, $this->key, $this->credentials, $parentStr) = unserialize($str);
     parent::unserialize($parentStr);
 }
開發者ID:artz20,項目名稱:Tv-shows-zone,代碼行數:5,代碼來源:RunAsUserToken.php

示例3: unserialize

 /**
  * {@inheritdoc}
  */
 public function unserialize($serialized)
 {
     list($this->client_id, $username, $parentStr) = unserialize($serialized);
     parent::unserialize($parentStr);
     $this->setUser((new User())->setUsername($username));
 }
開發者ID:apitude,項目名稱:user,代碼行數:9,代碼來源:OAuthToken.php

示例4: unserialize

 public function unserialize($serialized)
 {
     list($this->providerKey, $this->token, $previous) = unserialize($serialized);
     parent::unserialize($previous);
 }
開發者ID:stof,項目名稱:Antenna,代碼行數:5,代碼來源:Token.php

示例5: unserialize

 /**
  * {@inheritdoc}
  */
 public function unserialize($serialized)
 {
     list($this->uid, $this->provider, $this->info, $this->credentials, $this->raw, $parentStr) = unserialize($serialized);
     parent::unserialize($parentStr);
 }
開發者ID:hamlinmark1,項目名稱:DCSOpauthBundle,代碼行數:8,代碼來源:OpauthToken.php

示例6: unserialize

 /**
  * @param string $serialized
  */
 public function unserialize($serialized)
 {
     list($accountStr, $this->accessToken, $this->idToken, $parentStr) = unserialize($serialized);
     $this->account = unserialize($accountStr);
     parent::unserialize($parentStr);
 }
開發者ID:appsco,項目名稱:appsco-php-client,代碼行數:9,代碼來源:AppscoToken.php

示例7: unserialize

 /**
  * {@inheritDoc}
  */
 public function unserialize($serialized)
 {
     $data = unserialize($serialized);
     if (7 === count($data)) {
         list($this->accessToken, $this->rawToken, $this->refreshToken, $this->expiresIn, $this->createdAt, $this->resourceOwnerName, $parent, ) = $data;
     } else {
         // @deprecated Remove this in 0.5
         list($this->accessToken, $this->rawToken, $this->refreshToken, $this->expiresIn, $this->resourceOwnerName, $parent, ) = $data;
         $this->createdAt = time();
     }
     if (!$this->tokenSecret && isset($this->rawToken['oauth_token_secret'])) {
         $this->tokenSecret = $this->rawToken['oauth_token_secret'];
     }
     parent::unserialize($parent);
 }
開發者ID:michaeljayt,項目名稱:HWIOAuthBundle,代碼行數:18,代碼來源:OAuthToken.php

示例8: unserialize

 public function unserialize($serialized)
 {
     list($this->credentials, $parentStr) = unserialize($serialized);
     parent::unserialize($parentStr);
 }
開發者ID:kchhainarong,項目名稱:chantuchP,代碼行數:5,代碼來源:AbstractTokenTest.php

示例9: unserialize

 public function unserialize($str)
 {
     list($this->oauthVerifier, $parentStr) = unserialize($str);
     parent::unserialize($parentStr);
 }
開發者ID:aliel,項目名稱:FOSTwitterBundle,代碼行數:5,代碼來源:TwitterUserToken.php

示例10: unserialize

 public function unserialize($str)
 {
     list($this->apiUser, $this->accessToken, $this->providerKey, $this->scope, $parentStr) = unserialize($str);
     parent::unserialize($parentStr);
 }
開發者ID:iamluc,項目名稱:connect,代碼行數:5,代碼來源:ConnectToken.php

示例11: unserialize

 public function unserialize($serialized)
 {
     list($this->jira_username, $this->jira_password, $parent_data) = unserialize($serialized);
     parent::unserialize($parent_data);
 }
開發者ID:VincentCATILLON,項目名稱:ScrumBoard-it,代碼行數:5,代碼來源:JiraToken.php

示例12: unserialize

 public function unserialize($str)
 {
     list($this->credentials, $this->manager, $parentStr) = unserialize($str);
     parent::unserialize($parentStr);
 }
開發者ID:nh293,項目名稱:BeSimpleSsoAuthBundle,代碼行數:5,代碼來源:SsoToken.php

示例13: unserialize

 public function unserialize($serialized)
 {
     list($parent, $this->loa) = unserialize($serialized);
     parent::unserialize($parent);
 }
開發者ID:eefjevanderharst,項目名稱:Stepup-RA,代碼行數:5,代碼來源:SamlToken.php

示例14: unserialize

 /**
  * {@inheritdoc}
  */
 public function unserialize($serialized)
 {
     list($this->secret, $parentStr) = unserialize($serialized);
     parent::unserialize($parentStr);
 }
開發者ID:Ener-Getick,項目名稱:symfony,代碼行數:8,代碼來源:AnonymousToken.php

示例15: unserialize

 /**
  * {@inheritdoc}
  */
 public function unserialize($serialized)
 {
     $data = unserialize($serialized);
     // add a few extra elements in the array to ensure that we have enough keys when un-serializing
     // older data which does not include all properties.
     $data = array_merge($data, array_fill(0, 4, null));
     list($this->accessToken, $this->rawToken, $this->refreshToken, $this->expiresIn, $this->createdAt, $this->resourceOwnerName, $parent, ) = $data;
     if (!$this->tokenSecret && isset($this->rawToken['oauth_token_secret'])) {
         $this->tokenSecret = $this->rawToken['oauth_token_secret'];
     }
     parent::unserialize($parent);
 }
開發者ID:ismailbaskin,項目名稱:HWIOAuthBundle,代碼行數:15,代碼來源:OAuthToken.php


注:本文中的Symfony\Component\Security\Core\Authentication\Token\AbstractToken::unserialize方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。