Created
July 20, 2012 09:26
-
-
Save jbq/3149858 to your computer and use it in GitHub Desktop.
Found a gem in our code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * 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