src/Core/Startup/AbstractConfirmationToken.php
protected function genToken()
    {
        // Generate a new random token (as random as possible)
        $rg = new RandomGenerator();
        $token = $rg->randomToken('md5');

        // Store a file in the session save path (safer than /tmp, as open_basedir might limit that)
        file_put_contents($this->pathForToken($token), $token);

        return $token;
    }
protected function genToken()
    {
        // Generate a new random token (as random as possible)
        $rg = new RandomGenerator();
        $token = $rg->randomToken('md5');

        // Store a file in the session save path (safer than /tmp, as open_basedir might limit that)
        file_put_contents($this->pathForToken($token), $token);

        return $token;
    }
protected function genToken ( ) { // Generate a new random token (as random as possible) $ rg = new RandomGenerator ( ) ; $ token = $ rg -> randomToken ( 'md5' ) ; // Store a file in the session save path (safer than /tmp, as open_basedir might limit that) file_put_contents ( $ this -> pathForToken ( $ token ) , $ token ) ; return $ token ; }
Generate a new random token and store it

@return string Token name
Generate a new random token and store it