protected function tokenCookie(UriInterface $uri, string $token): Cookie
    {
        return Cookie::create(
            $this->config->csrfCookie(),
            $token,
            $this->config->csrfLifetime(),
            $this->config->basePath(),
            $this->config->cookieDomain($uri),
            $this->config->csrfSecure(),
            true
        );
    }
protected function tokenCookie(UriInterface $uri, string $token): Cookie
    {
        return Cookie::create(
            $this->config->csrfCookie(),
            $token,
            $this->config->csrfLifetime(),
            $this->config->basePath(),
            $this->config->cookieDomain($uri),
            $this->config->csrfSecure(),
            true
        );
    }
protected function tokenCookie ( UriInterface $ uri , string $ token ) : Cookie { return Cookie :: create ( $ this -> config -> csrfCookie ( ) , $ token , $ this -> config -> csrfLifetime ( ) , $ this -> config -> basePath ( ) , $ this -> config -> cookieDomain ( $ uri ) , $ this -> config -> csrfSecure ( ) , true ) ; }
Generate CSRF cookie.

@param UriInterface $uri Incoming uri.
@param string       $token

@return Cookie
Generate CSRF cookie .