Skip to content

Instantly share code, notes, and snippets.

@jbq
Created July 20, 2012 09:26
Show Gist options
  • Select an option

  • Save jbq/3149858 to your computer and use it in GitHub Desktop.

Select an option

Save jbq/3149858 to your computer and use it in GitHub Desktop.
Found a gem in our code
/**
* in the case of a cron bot we have no request. getInstance(null) try to access to the session and crash.
* @return
*/
public static function getBotInstance()
{
return new self(null);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment