4 * redis worker run script
7 * @license http://www.gnu.org/licenses/agpl.html AGPL Version 3
8 * @author Philipp Schüle <p.schuele@metaways.de>
9 * @copyright Copyright (c) 2012 Metaways Infosystems GmbH (http://www.metaways.de)
11 * you need to adjust some paths (tine + daemon)
13 * you need an config.ini file that should look like this:
22 $tine20path = dirname(dirname(__FILE__)). '/tine20';
23 $workerPath = dirname(dirname(__FILE__)) . '/tests/tine20/Tinebase/Redis/RedisWorker.php';
25 if (php_sapi_name() != 'cli') {
26 die('Not allowed: wrong sapi name!');
35 $tine20path . '/library',
38 set_include_path(implode(PATH_SEPARATOR, $paths));
40 require_once 'Zend/Loader/Autoloader.php';
41 $autoloader = Zend_Loader_Autoloader::getInstance();
42 $autoloader->setFallbackAutoloader(true);
43 Tinebase_Autoloader::initialize($autoloader);
45 // NOTE: you need to include your worker class here
46 require_once $workerPath;
47 $worker = new RedisWorker();