本文整理汇总了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);
}
示例2: unserialize
public function unserialize($str)
{
list($this->originalToken, $this->key, $this->credentials, $parentStr) = unserialize($str);
parent::unserialize($parentStr);
}
示例3: unserialize
/**
* {@inheritdoc}
*/
public function unserialize($serialized)
{
list($this->client_id, $username, $parentStr) = unserialize($serialized);
parent::unserialize($parentStr);
$this->setUser((new User())->setUsername($username));
}
示例4: unserialize
public function unserialize($serialized)
{
list($this->providerKey, $this->token, $previous) = unserialize($serialized);
parent::unserialize($previous);
}
示例5: unserialize
/**
* {@inheritdoc}
*/
public function unserialize($serialized)
{
list($this->uid, $this->provider, $this->info, $this->credentials, $this->raw, $parentStr) = unserialize($serialized);
parent::unserialize($parentStr);
}
示例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);
}
示例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);
}
示例8: unserialize
public function unserialize($serialized)
{
list($this->credentials, $parentStr) = unserialize($serialized);
parent::unserialize($parentStr);
}
示例9: unserialize
public function unserialize($str)
{
list($this->oauthVerifier, $parentStr) = unserialize($str);
parent::unserialize($parentStr);
}
示例10: unserialize
public function unserialize($str)
{
list($this->apiUser, $this->accessToken, $this->providerKey, $this->scope, $parentStr) = unserialize($str);
parent::unserialize($parentStr);
}
示例11: unserialize
public function unserialize($serialized)
{
list($this->jira_username, $this->jira_password, $parent_data) = unserialize($serialized);
parent::unserialize($parent_data);
}
示例12: unserialize
public function unserialize($str)
{
list($this->credentials, $this->manager, $parentStr) = unserialize($str);
parent::unserialize($parentStr);
}
示例13: unserialize
public function unserialize($serialized)
{
list($parent, $this->loa) = unserialize($serialized);
parent::unserialize($parent);
}
示例14: unserialize
/**
* {@inheritdoc}
*/
public function unserialize($serialized)
{
list($this->secret, $parentStr) = unserialize($serialized);
parent::unserialize($parentStr);
}
示例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);
}