Esempio n. 1
0
 public static function init()
 {
     if (!is_array(self::$queue_namespace)) {
         self::$queue_namespace = array();
     }
     \PHPQueue\Base::$queue_namespace = array_merge(array('CKFQueue\\Queues'), self::$queue_namespace);
     if (!is_array(self::$worker_namespace)) {
         self::$worker_namespace = array();
     }
     \PHPQueue\Base::$worker_namespace = array_merge(array('CKFQueue\\Workers'), self::$worker_namespace);
     if (!empty(self::$queue_path)) {
         \PHPQueue\Base::$queue_path = array(self::$queue_path);
     }
     if (!empty(self::$worker_path)) {
         \PHPQueue\Base::$worker_path = array(self::$worker_path);
     }
 }
Esempio n. 2
0
<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';
PHPQueue\Base::$queue_path = dirname(__DIR__) . '/demo/queues/';
PHPQueue\Base::$worker_path = dirname(__DIR__) . '/demo/workers/';
Esempio n. 3
0
<?php

require_once dirname(dirname(__DIR__)) . '/vendor/autoload.php';
PHPQueue\Base::$queue_path = __DIR__ . '/queues/';
PHPQueue\Base::$worker_path = __DIR__ . '/workers/';