Skip to content

Commit 8b892b7

Browse files
authored
Add files via upload
1 parent db5f253 commit 8b892b7

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

src/BusinessWorker.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ public function __construct($config)
99
{
1010
$this->$key = $value;
1111
}
12-
$backtrace = debug_backtrace();
13-
$this->_autoloadRootPath = dirname($backtrace[0]['file']);
1412
}
1513

1614
public function onWorkerStart()

src/Gateway.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ public function __construct($config)
1111
}
1212

1313
$this->router = array("\\GatewayWorker\\Gateway", 'routerBind');
14-
$backtrace = debug_backtrace();
15-
$this->_autoloadRootPath = dirname($backtrace[0]['file']);
1614
}
1715

1816
public function onConnect($connection)

src/Register.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ class Register extends \GatewayWorker\Register
55
{
66
public function __construct()
77
{
8-
$backtrace = debug_backtrace();
9-
$this->_autoloadRootPath = dirname($backtrace[0]['file']);
8+
109
}
1110

1211
public function onWorkerstart()

0 commit comments

Comments
 (0)