Eccube\Repository\CustomerRepository::getUniqueSecretKey PHP Method

getUniqueSecretKey() public method

ユニークなシークレットキーを返す
public getUniqueSecretKey ( $app ) : string
$app
return string
    public function getUniqueSecretKey($app)
    {
        $unique = Str::random(32);
        $Customer = $app['eccube.repository.customer']->findBy(array('secret_key' => $unique));
        if (count($Customer) == 0) {
            return $unique;
        } else {
            return $this->getUniqueSecretKey($app);
        }
    }