/** * @param Credentials $credentials * @param string $token * @return void */ public function updateToken(Credentials $credentials, $token) { $token = $this->getServiceLocator()->get('ZF\\OAuth2\\Adapter\\PdoAdapter')->getBcrypt()->create($token); $credentials->setToken($token); }
/** * @param \Application\Entity\Credentials * @param string $token * @return \Application\Credentials\CredentialsAdapterInterface */ public function updateToken(Credentials $credentials, $token) { $credentials->setToken($token); return $this; }