Skip to content

Instantly share code, notes, and snippets.

Created December 27, 2012 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/4389353 to your computer and use it in GitHub Desktop.
Save anonymous/4389353 to your computer and use it in GitHub Desktop.
saffire class template
class saffire {
// Returns saffire version (should be tuple major.minor.build)
public method version();
// Returns the git revision which was used for building this saffire version
public method git_revision();
// Returns the current run_mode: "fastcgi", "repl", "cli"
public method run_mode();
public property fastcgi; // Null or fastcgi class
public property cli; // Null or cli class
public property repl; // Null or repl class
}
class saffire::fastcgi {
// Returns ROLE of the current fastCGI request ("responder", "a")
public method role();
public method morestuff...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment