Created
June 23, 2017 10:25
-
-
Save jumper423/b0663f7b99a2e276f25426d2c19f2943 to your computer and use it in GitHub Desktop.
This file contains 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
$app = new \Phalcon\Mvc\Micro($di); | |
\Core\CommonObject::i()->setApp($app); | |
\Core\CommonObject::i()->getDI()->getShared('queue')->pull('fake_detector', function ($result) { | |
$fake = new \Fake\Service\Fake($result['from_user_id'], $result['to_user_id'], $result['dev'], $result['bot_name'], $result['bot_secret']); | |
return $fake->run(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment