예제 #1
0
 public function __construct($name = 'page-visit', $conf = null)
 {
     if (class_exists('AMQPConnection')) {
         $name = 'page-visit';
         return parent::__construct($name, $conf);
     }
 }
예제 #2
0
 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);
         }
     }
 }
예제 #3
0
 public function __construct()
 {
     parent::__construct('pv_data_queue');
 }