public function __construct($name = 'page-visit', $conf = null) { if (class_exists('AMQPConnection')) { $name = 'page-visit'; return parent::__construct($name, $conf); } }
public function __construct($name = 'cache-visit-log', $conf = null) { if (class_exists('AMQPConnection')) { $name = 'cache-visit-log'; $conf = isset(\Yii::$app->params['cache-visit-log-conf']) ? \Yii::$app->params['cache-visit-log-conf'] : ''; if (!empty($conf)) { $conf = json_decode($conf, true); parent::__construct($name, $conf); } } }
public function __construct() { parent::__construct('pv_data_queue'); }