Commit 7e03cf1a authored by chenchuanwen's avatar chenchuanwen

bridgeReload

parent ae69b35c
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
*/ */
function callback($instance,$channelName,$message){ function callback($instance,$channelName,$message){
define("APPLICATION_PATH", realpath(dirname(__FILE__) . '/../../../')); //指向public的上一级
require APPLICATION_PATH . '/scripts/crontab/common.php'; require APPLICATION_PATH . '/scripts/crontab/common.php';
error_reporting(E_ALL ^ E_NOTICE); error_reporting(E_ALL ^ E_NOTICE);
try{ try{
...@@ -30,6 +31,7 @@ function callback($instance,$channelName,$message){ ...@@ -30,6 +31,7 @@ function callback($instance,$channelName,$message){
echo $ex->getMessage(); echo $ex->getMessage();
} }
} }
define("APPLICATION_PATH", realpath(dirname(__FILE__) . '/../../../')); //指向public的上一级
require APPLICATION_PATH . '/scripts/crontab/common.php'; require APPLICATION_PATH . '/scripts/crontab/common.php';
$conf = \Yaf\Registry::get('config')->get('redis.database.params'); $conf = \Yaf\Registry::get('config')->get('redis.database.params');
$redisPublishName=\Yaf\Registry::get('config')->get('redis.redisPublishName'); $redisPublishName=\Yaf\Registry::get('config')->get('redis.redisPublishName');
......
<?php <?php
define("APPLICATION_PATH", realpath(dirname(__FILE__) . '/../../../')); //指向public的上一级
class Logger class Logger
{ {
public function __construct(/*Logging $logger*/) public function __construct(/*Logging $logger*/)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment