/** * Create a new Authenticator freshly generated for the given region. * @param string $region 2 characters region code. * @return Authenticator the requested Authenticator */ public static function generate($region) { $authenticator = new Authenticator($region); $authenticator->initialize(); return $authenticator; }