Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Google\GoogleAuthenticator::getUrl PHP Метод

getUrl() публичный Метод

Generate the URL of a QR code, which can be scanned by Google Authenticator app.
public getUrl ( Scheb\TwoFactorBundle\Model\Google\TwoFactorInterface $user ) : string
$user Scheb\TwoFactorBundle\Model\Google\TwoFactorInterface
Результат string
    public function getUrl(TwoFactorInterface $user)
    {
        $encoder = 'https://chart.googleapis.com/chart?chs=200x200&chld=M|0&cht=qr&chl=';
        return $encoder . urlencode($this->getQRContent($user));
    }