Skip to content

Instantly share code, notes, and snippets.

@jumper423
Created June 23, 2017 10:25
Show Gist options
  • Save jumper423/b0663f7b99a2e276f25426d2c19f2943 to your computer and use it in GitHub Desktop.
Save jumper423/b0663f7b99a2e276f25426d2c19f2943 to your computer and use it in GitHub Desktop.
$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