当前位置: 首页>>代码示例>>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;未经允许,请勿转载。