Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
chengyao committed Nov 25, 2024
1 parent a15c153 commit a281239
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion bin/swoole.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
require_once BASE_PATH . 'vendor/autoload.php';

$server = new Server('0.0.0.0', 8989);
$routeDispatcher = require_once base_path('src/router.php');
$routeDispatcher = require_once base_path('app/router.php');

$server->on('request', function (Request $request, Response $response) use ($routeDispatcher) {
try {
Expand Down
9 changes: 0 additions & 9 deletions bin/workerman.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use App\Middlewares\ExceptionHandleMiddleware;
use App\Middlewares\WorkermanResponseEmitter;
use App\ServerRequest;
use Next\Aop\Aop;
use Next\Http\Server\RequestHandler;
use Workerman\Connection\TcpConnection;
use Workerman\Protocols\Http\Request;
Expand All @@ -22,14 +21,6 @@
define('BASE_PATH', dirname(__DIR__) . '/');
require_once BASE_PATH . 'vendor/autoload.php';

Aop::init(
[base_path('src')],
[
\Next\Aop\Collector\PropertyAttributeCollector::class,
\Next\Aop\Collector\AspectCollector::class,
],
base_path('runtime/aop'),
);
$worker = new Worker('http://0.0.0.0:8989');
$routeDispatcher = require_once base_path('src/router.php');
$worker->onMessage = function (TcpConnection $connection, Request $request) use ($routeDispatcher) {
Expand Down

0 comments on commit a281239

Please sign in to comment.