Skip to content
Permalink
Browse files
Merge pull request #1 from kilmas/mytest
add composer.json and apache/log4php replace log4php/Logger.php
  • Loading branch information
lexin-arch committed Jul 5, 2018
2 parents 7fa8f97 + 07fae4a commit fbff59558ae2926302b291e3df2f62a8980c14e6
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 fbff595

Please sign in to comment.