Skip to content
Permalink
Browse files
add composer.json and apache/log4php replace log4php/Logger.php
  • Loading branch information
kilmas committed Jun 29, 2018
1 parent e8ad247 commit 07fae4a1cbee26307c36f27a62ac9bac694c63ff
Showing 3 changed files with 18 additions and 3 deletions.
@@ -17,7 +17,11 @@
* limitations under the License.
*/

require_once('log4php/Logger.php');
define("BIN_DIR", __DIR__);
define('MYROOT',BIN_DIR."/..");

require_once MYROOT . '/vendor/autoload.php';
require_once MYROOT . '/vendor/apache/log4php/src/main/php/Logger.php';

use com\fenqile\fsof\common\config\FSOFConfigManager;

@@ -0,0 +1,5 @@
{
"require": {
"apache/log4php": "^2.3"
}
}
@@ -17,8 +17,14 @@
*/
namespace com\fenqile\fsof\provider\shell;

require_once('log4php/Logger.php');
use com\fenqile\fsof\common\config\FSOFConfigManager;
use com\fenqile\fsof\provider\core\server\TcpServer;

define("BIN_DIR", __DIR__);
define('MYROOT',BIN_DIR."/../..");

require_once MYROOT . '/vendor/autoload.php';
require_once MYROOT . '/vendor/apache/log4php/src/main/php/Logger.php';

// 定义provider shell目录
define('FSOF_PROVIDER_SHELL_PATH', __DIR__);
@@ -56,7 +62,7 @@
}

\Logger::getLogger(__CLASS__)->info("input {$cmd} {$name}");
$server = new \com\fenqile\fsof\provider\core\server\TcpServer($name);
$server = new TcpServer($name);
//加载app root目录下的bootstrap.php和provider/$name.provider文件
$server->setRequire(FSOFConfigManager::getProviderAppRoot($name));

0 comments on commit 07fae4a

Please sign in to comment.