Retrieves the singleton instance of this class.
public static getInstance ( string $name = null, string $class = __CLASS__ ) : sfContext | ||
$name | string | The name of the sfContext to retrieve. |
$class | string | The context class to use (sfContext by default) |
return | sfContext | An sfContext implementation instance. |