Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored Aug 24, 2022
1 parent db5f253 commit 8b892b7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions src/BusinessWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ public function __construct($config)
{
$this->$key = $value;
}
$backtrace = debug_backtrace();
$this->_autoloadRootPath = dirname($backtrace[0]['file']);
}

public function onWorkerStart()
Expand Down
2 changes: 0 additions & 2 deletions src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ public function __construct($config)
}

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

public function onConnect($connection)
Expand Down
3 changes: 1 addition & 2 deletions src/Register.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ class Register extends \GatewayWorker\Register
{
public function __construct()
{
$backtrace = debug_backtrace();
$this->_autoloadRootPath = dirname($backtrace[0]['file']);

}

public function onWorkerstart()
Expand Down

0 comments on commit 8b892b7

Please sign in to comment.