View file vkclone-0.0.1/protected/gearman.php
#!/usr/bin/env php <?php defined('YII_DEBUG') or define('YII_DEBUG', true); require_once(dirname(__FILE__).'/yii.php'); Yii::$configDir = dirname(__FILE__).'/config'; Yii::setPathOfAlias('gearman', dirname(__FILE__).'/extensions/worker/'); Yii::import('gearman.*'); Yii::createApplicationByType('WorkerApplication', 'gearman')->run();