diff --git a/src/start.php b/src/start.php index 8b2ee36..916e4a5 100644 --- a/src/start.php +++ b/src/start.php @@ -5,7 +5,7 @@ require_once __DIR__ . '/libs/MyWebSocketHandler.php'; use Workerman\Worker; use App\MyWebSocketHandler; -require_once __DIR__ . '/vendor/autoload.php'; +require_once __DIR__ . '/../vendor/autoload.php'; $handler = new MyWebSocketHandler(); diff --git a/src/workerman.log b/src/workerman.log index a652dec..cd4a77f 100644 --- a/src/workerman.log +++ b/src/workerman.log @@ -6,3 +6,7 @@ 2025-06-03 15:11:56 pid:6213 Workerman[start.php] received signal SIGINT 2025-06-03 15:11:56 pid:6213 Workerman[start.php] stopping 2025-06-03 15:11:56 pid:6213 Workerman[start.php] has been stopped +2025-06-03 15:39:55 pid:455 Workerman[start.php] start in DEBUG mode +2025-06-03 15:39:56 pid:455 Workerman[start.php] received signal SIGINT +2025-06-03 15:39:56 pid:455 Workerman[start.php] stopping +2025-06-03 15:39:56 pid:455 Workerman[start.php] has been stopped diff --git a/tests/Test.php b/tests/Test.php index 0dae905..59e4037 100644 --- a/tests/Test.php +++ b/tests/Test.php @@ -1,110 +1,53 @@ toBe($class::class); + protected function setUp(): void + { + $this->handler = new MyWebSocketHandler(); + } - //restore old request class - Http::requestClass($oldRequestClass); -}); + public function testOnConnect() + { + $connection = $this->createMock(TcpConnection::class); + $worker = $this->createMock(Worker::class); -it('tests ::input', function () { - //test 413 payload too large - testWithConnectionClose(function (TcpConnection $tcpConnection) { - expect(Http::input(str_repeat('jhdxr', 3333), $tcpConnection)) - ->toBe(0); - }, '413 Payload Too Large'); + // 使用 ob_start + ob_get_clean 捕获输出 + ob_start(); + $this->handler->onConnect($connection); + $output = ob_get_clean(); - //example request from ChatGPT :) - $buffer = "POST /path/to/resource HTTP/1.1\r\n" . - "Host: example.com\r\n" . - "Content-Type: application/json\r\n" . - "Content-Length: 27\r\n" . - "\r\n" . - '{"key": "value", "foo": "bar"}'; + $this->assertStringContainsString('New connection', $output); + } - //unrecognized method - testWithConnectionClose(function (TcpConnection $tcpConnection) use ($buffer) { - expect(Http::input(str_replace('POST', 'MIAOWU', $buffer), $tcpConnection)) - ->toBe(0); - }, '400 Bad Request'); + public function testOnMessage() + { + $connection = $this->createMock(TcpConnection::class); + $connection->expects($this->once()) + ->method('send') + ->with($this->equalTo('Hello world')); - //content-length exceeds connection max package size - testWithConnectionClose(function (TcpConnection $tcpConnection) use ($buffer) { - $tcpConnection->maxPackageSize = 10; - expect(Http::input($buffer, $tcpConnection)) - ->toBe(0); - }, '413 Payload Too Large'); -}); + $this->handler->onMessage($connection, 'world'); + } -it('tests ::encode for non-object response', function () { - /** @var TcpConnection $tcpConnection */ - $tcpConnection = Mockery::mock(TcpConnection::class); - $tcpConnection->headers = [ - 'foo' => 'bar', - 'jhdxr' => ['a', 'b'], - ]; - $extHeader = "foo: bar\r\n" . - "jhdxr: a\r\n" . - "jhdxr: b\r\n"; + public function testOnClose() + { + $connection = $this->createMock(TcpConnection::class); - expect(Http::encode('xiami', $tcpConnection)) - ->toBe("HTTP/1.1 200 OK\r\n" . - "Server: workerman\r\n" . - "{$extHeader}Connection: keep-alive\r\n" . - "Content-Type: text/html;charset=utf-8\r\n" . - "Content-Length: 5\r\n\r\nxiami"); -}); + ob_start(); + $this->handler->onClose($connection); + $output = ob_get_clean(); -it('tests ::encode for ' . Response::class, function () { - /** @var TcpConnection $tcpConnection */ - $tcpConnection = Mockery::mock(TcpConnection::class); - $tcpConnection->headers = [ - 'foo' => 'bar', - 'jhdxr' => ['a', 'b'], - ]; - $extHeader = "foo: bar\r\n" . - "jhdxr: a\r\n" . - "jhdxr: b\r\n"; - - $response = new Response(body: 'xiami'); - - expect(Http::encode($response, $tcpConnection)) - ->toBe("HTTP/1.1 200 OK\r\n" . - "Server: workerman\r\n" . - "{$extHeader}Connection: keep-alive\r\n" . - "Content-Type: text/html;charset=utf-8\r\n" . - "Content-Length: 5\r\n\r\nxiami"); -}); - -it('tests ::decode', function () { - /** @var TcpConnection $tcpConnection */ - $tcpConnection = Mockery::mock(TcpConnection::class); - - //example request from ChatGPT :) - $buffer = "POST /path/to/resource HTTP/1.1\r\n" . - "Host: example.com\r\n" . - "Content-Type: application/json\r\n" . - "Content-Length: 27\r\n" . - "\r\n" . - '{"key": "value", "foo": "bar"}'; - - $value = expect(Http::decode($buffer, $tcpConnection)) - ->toBeInstanceOf(Request::class) - ->value; - - //test cache - expect($value == Http::decode($buffer, $tcpConnection)) - ->toBeTrue(); -}); \ No newline at end of file + $this->assertStringContainsString('Connection closed', $output); + } +} \ No newline at end of file diff --git a/src/vendor/autoload.php b/vendor/autoload.php similarity index 100% rename from src/vendor/autoload.php rename to vendor/autoload.php diff --git a/src/vendor/composer/ClassLoader.php b/vendor/composer/ClassLoader.php similarity index 100% rename from src/vendor/composer/ClassLoader.php rename to vendor/composer/ClassLoader.php diff --git a/src/vendor/composer/InstalledVersions.php b/vendor/composer/InstalledVersions.php similarity index 100% rename from src/vendor/composer/InstalledVersions.php rename to vendor/composer/InstalledVersions.php diff --git a/src/vendor/composer/LICENSE b/vendor/composer/LICENSE similarity index 100% rename from src/vendor/composer/LICENSE rename to vendor/composer/LICENSE diff --git a/src/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php similarity index 100% rename from src/vendor/composer/autoload_classmap.php rename to vendor/composer/autoload_classmap.php diff --git a/src/vendor/composer/autoload_namespaces.php b/vendor/composer/autoload_namespaces.php similarity index 100% rename from src/vendor/composer/autoload_namespaces.php rename to vendor/composer/autoload_namespaces.php diff --git a/src/vendor/composer/autoload_psr4.php b/vendor/composer/autoload_psr4.php similarity index 100% rename from src/vendor/composer/autoload_psr4.php rename to vendor/composer/autoload_psr4.php diff --git a/src/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php similarity index 100% rename from src/vendor/composer/autoload_real.php rename to vendor/composer/autoload_real.php diff --git a/src/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php similarity index 100% rename from src/vendor/composer/autoload_static.php rename to vendor/composer/autoload_static.php diff --git a/src/vendor/composer/installed.json b/vendor/composer/installed.json similarity index 100% rename from src/vendor/composer/installed.json rename to vendor/composer/installed.json diff --git a/src/vendor/composer/installed.php b/vendor/composer/installed.php similarity index 100% rename from src/vendor/composer/installed.php rename to vendor/composer/installed.php diff --git a/src/vendor/composer/platform_check.php b/vendor/composer/platform_check.php similarity index 100% rename from src/vendor/composer/platform_check.php rename to vendor/composer/platform_check.php diff --git a/src/vendor/workerman/coroutine/.gitignore b/vendor/workerman/coroutine/.gitignore similarity index 100% rename from src/vendor/workerman/coroutine/.gitignore rename to vendor/workerman/coroutine/.gitignore diff --git a/src/vendor/workerman/coroutine/LICENSE b/vendor/workerman/coroutine/LICENSE similarity index 100% rename from src/vendor/workerman/coroutine/LICENSE rename to vendor/workerman/coroutine/LICENSE diff --git a/src/vendor/workerman/coroutine/README.md b/vendor/workerman/coroutine/README.md similarity index 100% rename from src/vendor/workerman/coroutine/README.md rename to vendor/workerman/coroutine/README.md diff --git a/src/vendor/workerman/coroutine/composer.json b/vendor/workerman/coroutine/composer.json similarity index 100% rename from src/vendor/workerman/coroutine/composer.json rename to vendor/workerman/coroutine/composer.json diff --git a/src/vendor/workerman/coroutine/src/Barrier.php b/vendor/workerman/coroutine/src/Barrier.php similarity index 100% rename from src/vendor/workerman/coroutine/src/Barrier.php rename to vendor/workerman/coroutine/src/Barrier.php diff --git a/src/vendor/workerman/coroutine/src/Barrier/BarrierInterface.php b/vendor/workerman/coroutine/src/Barrier/BarrierInterface.php similarity index 100% rename from src/vendor/workerman/coroutine/src/Barrier/BarrierInterface.php rename to vendor/workerman/coroutine/src/Barrier/BarrierInterface.php diff --git a/src/vendor/workerman/coroutine/src/Barrier/Fiber.php b/vendor/workerman/coroutine/src/Barrier/Fiber.php similarity index 100% rename from src/vendor/workerman/coroutine/src/Barrier/Fiber.php rename to vendor/workerman/coroutine/src/Barrier/Fiber.php diff --git a/src/vendor/workerman/coroutine/src/Barrier/Swoole.php b/vendor/workerman/coroutine/src/Barrier/Swoole.php similarity index 100% rename from src/vendor/workerman/coroutine/src/Barrier/Swoole.php rename to vendor/workerman/coroutine/src/Barrier/Swoole.php diff --git a/src/vendor/workerman/coroutine/src/Barrier/Swow.php b/vendor/workerman/coroutine/src/Barrier/Swow.php similarity index 100% rename from src/vendor/workerman/coroutine/src/Barrier/Swow.php rename to vendor/workerman/coroutine/src/Barrier/Swow.php diff --git a/src/vendor/workerman/coroutine/src/Channel.php b/vendor/workerman/coroutine/src/Channel.php similarity index 100% rename from src/vendor/workerman/coroutine/src/Channel.php rename to vendor/workerman/coroutine/src/Channel.php diff --git a/src/vendor/workerman/coroutine/src/Channel/ChannelInterface.php b/vendor/workerman/coroutine/src/Channel/ChannelInterface.php similarity index 100% rename from src/vendor/workerman/coroutine/src/Channel/ChannelInterface.php rename to vendor/workerman/coroutine/src/Channel/ChannelInterface.php diff --git a/src/vendor/workerman/coroutine/src/Channel/Fiber.php b/vendor/workerman/coroutine/src/Channel/Fiber.php similarity index 100% rename from src/vendor/workerman/coroutine/src/Channel/Fiber.php rename to vendor/workerman/coroutine/src/Channel/Fiber.php diff --git a/src/vendor/workerman/coroutine/src/Channel/Memory.php b/vendor/workerman/coroutine/src/Channel/Memory.php similarity index 100% rename from src/vendor/workerman/coroutine/src/Channel/Memory.php rename to vendor/workerman/coroutine/src/Channel/Memory.php diff --git a/src/vendor/workerman/coroutine/src/Channel/Swoole.php b/vendor/workerman/coroutine/src/Channel/Swoole.php similarity index 100% rename from src/vendor/workerman/coroutine/src/Channel/Swoole.php rename to vendor/workerman/coroutine/src/Channel/Swoole.php diff --git a/src/vendor/workerman/coroutine/src/Channel/Swow.php b/vendor/workerman/coroutine/src/Channel/Swow.php similarity index 100% rename from src/vendor/workerman/coroutine/src/Channel/Swow.php rename to vendor/workerman/coroutine/src/Channel/Swow.php diff --git a/src/vendor/workerman/coroutine/src/Context.php b/vendor/workerman/coroutine/src/Context.php similarity index 100% rename from src/vendor/workerman/coroutine/src/Context.php rename to vendor/workerman/coroutine/src/Context.php diff --git a/src/vendor/workerman/coroutine/src/Context/ContextInterface.php b/vendor/workerman/coroutine/src/Context/ContextInterface.php similarity index 100% rename from src/vendor/workerman/coroutine/src/Context/ContextInterface.php rename to vendor/workerman/coroutine/src/Context/ContextInterface.php diff --git a/src/vendor/workerman/coroutine/src/Context/Fiber.php b/vendor/workerman/coroutine/src/Context/Fiber.php similarity index 100% rename from src/vendor/workerman/coroutine/src/Context/Fiber.php rename to vendor/workerman/coroutine/src/Context/Fiber.php diff --git a/src/vendor/workerman/coroutine/src/Context/Swoole.php b/vendor/workerman/coroutine/src/Context/Swoole.php similarity index 100% rename from src/vendor/workerman/coroutine/src/Context/Swoole.php rename to vendor/workerman/coroutine/src/Context/Swoole.php diff --git a/src/vendor/workerman/coroutine/src/Context/Swow.php b/vendor/workerman/coroutine/src/Context/Swow.php similarity index 100% rename from src/vendor/workerman/coroutine/src/Context/Swow.php rename to vendor/workerman/coroutine/src/Context/Swow.php diff --git a/src/vendor/workerman/coroutine/src/Coroutine.php b/vendor/workerman/coroutine/src/Coroutine.php similarity index 100% rename from src/vendor/workerman/coroutine/src/Coroutine.php rename to vendor/workerman/coroutine/src/Coroutine.php diff --git a/src/vendor/workerman/coroutine/src/Coroutine/CoroutineInterface.php b/vendor/workerman/coroutine/src/Coroutine/CoroutineInterface.php similarity index 100% rename from src/vendor/workerman/coroutine/src/Coroutine/CoroutineInterface.php rename to vendor/workerman/coroutine/src/Coroutine/CoroutineInterface.php diff --git a/src/vendor/workerman/coroutine/src/Coroutine/Fiber.php b/vendor/workerman/coroutine/src/Coroutine/Fiber.php similarity index 100% rename from src/vendor/workerman/coroutine/src/Coroutine/Fiber.php rename to vendor/workerman/coroutine/src/Coroutine/Fiber.php diff --git a/src/vendor/workerman/coroutine/src/Coroutine/Swoole.php b/vendor/workerman/coroutine/src/Coroutine/Swoole.php similarity index 100% rename from src/vendor/workerman/coroutine/src/Coroutine/Swoole.php rename to vendor/workerman/coroutine/src/Coroutine/Swoole.php diff --git a/src/vendor/workerman/coroutine/src/Coroutine/Swow.php b/vendor/workerman/coroutine/src/Coroutine/Swow.php similarity index 100% rename from src/vendor/workerman/coroutine/src/Coroutine/Swow.php rename to vendor/workerman/coroutine/src/Coroutine/Swow.php diff --git a/src/vendor/workerman/coroutine/src/Locker.php b/vendor/workerman/coroutine/src/Locker.php similarity index 100% rename from src/vendor/workerman/coroutine/src/Locker.php rename to vendor/workerman/coroutine/src/Locker.php diff --git a/src/vendor/workerman/coroutine/src/Parallel.php b/vendor/workerman/coroutine/src/Parallel.php similarity index 100% rename from src/vendor/workerman/coroutine/src/Parallel.php rename to vendor/workerman/coroutine/src/Parallel.php diff --git a/src/vendor/workerman/coroutine/src/Pool.php b/vendor/workerman/coroutine/src/Pool.php similarity index 100% rename from src/vendor/workerman/coroutine/src/Pool.php rename to vendor/workerman/coroutine/src/Pool.php diff --git a/src/vendor/workerman/coroutine/src/PoolInterface.php b/vendor/workerman/coroutine/src/PoolInterface.php similarity index 100% rename from src/vendor/workerman/coroutine/src/PoolInterface.php rename to vendor/workerman/coroutine/src/PoolInterface.php diff --git a/src/vendor/workerman/coroutine/src/Utils/DestructionWatcher.php b/vendor/workerman/coroutine/src/Utils/DestructionWatcher.php similarity index 100% rename from src/vendor/workerman/coroutine/src/Utils/DestructionWatcher.php rename to vendor/workerman/coroutine/src/Utils/DestructionWatcher.php diff --git a/src/vendor/workerman/coroutine/src/WaitGroup.php b/vendor/workerman/coroutine/src/WaitGroup.php similarity index 100% rename from src/vendor/workerman/coroutine/src/WaitGroup.php rename to vendor/workerman/coroutine/src/WaitGroup.php diff --git a/src/vendor/workerman/coroutine/src/WaitGroup/Fiber.php b/vendor/workerman/coroutine/src/WaitGroup/Fiber.php similarity index 100% rename from src/vendor/workerman/coroutine/src/WaitGroup/Fiber.php rename to vendor/workerman/coroutine/src/WaitGroup/Fiber.php diff --git a/src/vendor/workerman/coroutine/src/WaitGroup/Swoole.php b/vendor/workerman/coroutine/src/WaitGroup/Swoole.php similarity index 100% rename from src/vendor/workerman/coroutine/src/WaitGroup/Swoole.php rename to vendor/workerman/coroutine/src/WaitGroup/Swoole.php diff --git a/src/vendor/workerman/coroutine/src/WaitGroup/Swow.php b/vendor/workerman/coroutine/src/WaitGroup/Swow.php similarity index 100% rename from src/vendor/workerman/coroutine/src/WaitGroup/Swow.php rename to vendor/workerman/coroutine/src/WaitGroup/Swow.php diff --git a/src/vendor/workerman/coroutine/src/WaitGroup/WaitGroupInterface.php b/vendor/workerman/coroutine/src/WaitGroup/WaitGroupInterface.php similarity index 100% rename from src/vendor/workerman/coroutine/src/WaitGroup/WaitGroupInterface.php rename to vendor/workerman/coroutine/src/WaitGroup/WaitGroupInterface.php diff --git a/src/vendor/workerman/coroutine/stubs/SwowStub.php b/vendor/workerman/coroutine/stubs/SwowStub.php similarity index 100% rename from src/vendor/workerman/coroutine/stubs/SwowStub.php rename to vendor/workerman/coroutine/stubs/SwowStub.php diff --git a/src/vendor/workerman/coroutine/tests/BarrierTest.php b/vendor/workerman/coroutine/tests/BarrierTest.php similarity index 100% rename from src/vendor/workerman/coroutine/tests/BarrierTest.php rename to vendor/workerman/coroutine/tests/BarrierTest.php diff --git a/src/vendor/workerman/coroutine/tests/ChannelTest.php b/vendor/workerman/coroutine/tests/ChannelTest.php similarity index 100% rename from src/vendor/workerman/coroutine/tests/ChannelTest.php rename to vendor/workerman/coroutine/tests/ChannelTest.php diff --git a/src/vendor/workerman/coroutine/tests/ContextTest.php b/vendor/workerman/coroutine/tests/ContextTest.php similarity index 100% rename from src/vendor/workerman/coroutine/tests/ContextTest.php rename to vendor/workerman/coroutine/tests/ContextTest.php diff --git a/src/vendor/workerman/coroutine/tests/CoroutineTest.php b/vendor/workerman/coroutine/tests/CoroutineTest.php similarity index 100% rename from src/vendor/workerman/coroutine/tests/CoroutineTest.php rename to vendor/workerman/coroutine/tests/CoroutineTest.php diff --git a/src/vendor/workerman/coroutine/tests/FiberChannelTest.php b/vendor/workerman/coroutine/tests/FiberChannelTest.php similarity index 100% rename from src/vendor/workerman/coroutine/tests/FiberChannelTest.php rename to vendor/workerman/coroutine/tests/FiberChannelTest.php diff --git a/src/vendor/workerman/coroutine/tests/LockerTest.php b/vendor/workerman/coroutine/tests/LockerTest.php similarity index 100% rename from src/vendor/workerman/coroutine/tests/LockerTest.php rename to vendor/workerman/coroutine/tests/LockerTest.php diff --git a/src/vendor/workerman/coroutine/tests/ParallelTest.php b/vendor/workerman/coroutine/tests/ParallelTest.php similarity index 100% rename from src/vendor/workerman/coroutine/tests/ParallelTest.php rename to vendor/workerman/coroutine/tests/ParallelTest.php diff --git a/src/vendor/workerman/coroutine/tests/PoolTest.php b/vendor/workerman/coroutine/tests/PoolTest.php similarity index 100% rename from src/vendor/workerman/coroutine/tests/PoolTest.php rename to vendor/workerman/coroutine/tests/PoolTest.php diff --git a/src/vendor/workerman/coroutine/tests/WaitGroupTest.php b/vendor/workerman/coroutine/tests/WaitGroupTest.php similarity index 100% rename from src/vendor/workerman/coroutine/tests/WaitGroupTest.php rename to vendor/workerman/coroutine/tests/WaitGroupTest.php diff --git a/src/vendor/workerman/coroutine/tests/start.php b/vendor/workerman/coroutine/tests/start.php similarity index 100% rename from src/vendor/workerman/coroutine/tests/start.php rename to vendor/workerman/coroutine/tests/start.php diff --git a/src/vendor/workerman/workerman/MIT-LICENSE.txt b/vendor/workerman/workerman/MIT-LICENSE.txt similarity index 100% rename from src/vendor/workerman/workerman/MIT-LICENSE.txt rename to vendor/workerman/workerman/MIT-LICENSE.txt diff --git a/src/vendor/workerman/workerman/README.md b/vendor/workerman/workerman/README.md similarity index 100% rename from src/vendor/workerman/workerman/README.md rename to vendor/workerman/workerman/README.md diff --git a/src/vendor/workerman/workerman/SECURITY.md b/vendor/workerman/workerman/SECURITY.md similarity index 100% rename from src/vendor/workerman/workerman/SECURITY.md rename to vendor/workerman/workerman/SECURITY.md diff --git a/src/vendor/workerman/workerman/composer.json b/vendor/workerman/workerman/composer.json similarity index 100% rename from src/vendor/workerman/workerman/composer.json rename to vendor/workerman/workerman/composer.json diff --git a/src/vendor/workerman/workerman/src/Connection/AsyncTcpConnection.php b/vendor/workerman/workerman/src/Connection/AsyncTcpConnection.php similarity index 100% rename from src/vendor/workerman/workerman/src/Connection/AsyncTcpConnection.php rename to vendor/workerman/workerman/src/Connection/AsyncTcpConnection.php diff --git a/src/vendor/workerman/workerman/src/Connection/AsyncUdpConnection.php b/vendor/workerman/workerman/src/Connection/AsyncUdpConnection.php similarity index 100% rename from src/vendor/workerman/workerman/src/Connection/AsyncUdpConnection.php rename to vendor/workerman/workerman/src/Connection/AsyncUdpConnection.php diff --git a/src/vendor/workerman/workerman/src/Connection/ConnectionInterface.php b/vendor/workerman/workerman/src/Connection/ConnectionInterface.php similarity index 100% rename from src/vendor/workerman/workerman/src/Connection/ConnectionInterface.php rename to vendor/workerman/workerman/src/Connection/ConnectionInterface.php diff --git a/src/vendor/workerman/workerman/src/Connection/TcpConnection.php b/vendor/workerman/workerman/src/Connection/TcpConnection.php similarity index 100% rename from src/vendor/workerman/workerman/src/Connection/TcpConnection.php rename to vendor/workerman/workerman/src/Connection/TcpConnection.php diff --git a/src/vendor/workerman/workerman/src/Connection/UdpConnection.php b/vendor/workerman/workerman/src/Connection/UdpConnection.php similarity index 100% rename from src/vendor/workerman/workerman/src/Connection/UdpConnection.php rename to vendor/workerman/workerman/src/Connection/UdpConnection.php diff --git a/src/vendor/workerman/workerman/src/Events/Ev.php b/vendor/workerman/workerman/src/Events/Ev.php similarity index 100% rename from src/vendor/workerman/workerman/src/Events/Ev.php rename to vendor/workerman/workerman/src/Events/Ev.php diff --git a/src/vendor/workerman/workerman/src/Events/Event.php b/vendor/workerman/workerman/src/Events/Event.php similarity index 100% rename from src/vendor/workerman/workerman/src/Events/Event.php rename to vendor/workerman/workerman/src/Events/Event.php diff --git a/src/vendor/workerman/workerman/src/Events/EventInterface.php b/vendor/workerman/workerman/src/Events/EventInterface.php similarity index 100% rename from src/vendor/workerman/workerman/src/Events/EventInterface.php rename to vendor/workerman/workerman/src/Events/EventInterface.php diff --git a/src/vendor/workerman/workerman/src/Events/Fiber.php b/vendor/workerman/workerman/src/Events/Fiber.php similarity index 100% rename from src/vendor/workerman/workerman/src/Events/Fiber.php rename to vendor/workerman/workerman/src/Events/Fiber.php diff --git a/src/vendor/workerman/workerman/src/Events/Select.php b/vendor/workerman/workerman/src/Events/Select.php similarity index 100% rename from src/vendor/workerman/workerman/src/Events/Select.php rename to vendor/workerman/workerman/src/Events/Select.php diff --git a/src/vendor/workerman/workerman/src/Events/Swoole.php b/vendor/workerman/workerman/src/Events/Swoole.php similarity index 100% rename from src/vendor/workerman/workerman/src/Events/Swoole.php rename to vendor/workerman/workerman/src/Events/Swoole.php diff --git a/src/vendor/workerman/workerman/src/Events/Swow.php b/vendor/workerman/workerman/src/Events/Swow.php similarity index 100% rename from src/vendor/workerman/workerman/src/Events/Swow.php rename to vendor/workerman/workerman/src/Events/Swow.php diff --git a/src/vendor/workerman/workerman/src/Protocols/Frame.php b/vendor/workerman/workerman/src/Protocols/Frame.php similarity index 100% rename from src/vendor/workerman/workerman/src/Protocols/Frame.php rename to vendor/workerman/workerman/src/Protocols/Frame.php diff --git a/src/vendor/workerman/workerman/src/Protocols/Http.php b/vendor/workerman/workerman/src/Protocols/Http.php similarity index 100% rename from src/vendor/workerman/workerman/src/Protocols/Http.php rename to vendor/workerman/workerman/src/Protocols/Http.php diff --git a/src/vendor/workerman/workerman/src/Protocols/Http/Chunk.php b/vendor/workerman/workerman/src/Protocols/Http/Chunk.php similarity index 100% rename from src/vendor/workerman/workerman/src/Protocols/Http/Chunk.php rename to vendor/workerman/workerman/src/Protocols/Http/Chunk.php diff --git a/src/vendor/workerman/workerman/src/Protocols/Http/Request.php b/vendor/workerman/workerman/src/Protocols/Http/Request.php similarity index 100% rename from src/vendor/workerman/workerman/src/Protocols/Http/Request.php rename to vendor/workerman/workerman/src/Protocols/Http/Request.php diff --git a/src/vendor/workerman/workerman/src/Protocols/Http/Response.php b/vendor/workerman/workerman/src/Protocols/Http/Response.php similarity index 100% rename from src/vendor/workerman/workerman/src/Protocols/Http/Response.php rename to vendor/workerman/workerman/src/Protocols/Http/Response.php diff --git a/src/vendor/workerman/workerman/src/Protocols/Http/ServerSentEvents.php b/vendor/workerman/workerman/src/Protocols/Http/ServerSentEvents.php similarity index 100% rename from src/vendor/workerman/workerman/src/Protocols/Http/ServerSentEvents.php rename to vendor/workerman/workerman/src/Protocols/Http/ServerSentEvents.php diff --git a/src/vendor/workerman/workerman/src/Protocols/Http/Session.php b/vendor/workerman/workerman/src/Protocols/Http/Session.php similarity index 100% rename from src/vendor/workerman/workerman/src/Protocols/Http/Session.php rename to vendor/workerman/workerman/src/Protocols/Http/Session.php diff --git a/src/vendor/workerman/workerman/src/Protocols/Http/Session/FileSessionHandler.php b/vendor/workerman/workerman/src/Protocols/Http/Session/FileSessionHandler.php similarity index 100% rename from src/vendor/workerman/workerman/src/Protocols/Http/Session/FileSessionHandler.php rename to vendor/workerman/workerman/src/Protocols/Http/Session/FileSessionHandler.php diff --git a/src/vendor/workerman/workerman/src/Protocols/Http/Session/RedisClusterSessionHandler.php b/vendor/workerman/workerman/src/Protocols/Http/Session/RedisClusterSessionHandler.php similarity index 100% rename from src/vendor/workerman/workerman/src/Protocols/Http/Session/RedisClusterSessionHandler.php rename to vendor/workerman/workerman/src/Protocols/Http/Session/RedisClusterSessionHandler.php diff --git a/src/vendor/workerman/workerman/src/Protocols/Http/Session/RedisSessionHandler.php b/vendor/workerman/workerman/src/Protocols/Http/Session/RedisSessionHandler.php similarity index 100% rename from src/vendor/workerman/workerman/src/Protocols/Http/Session/RedisSessionHandler.php rename to vendor/workerman/workerman/src/Protocols/Http/Session/RedisSessionHandler.php diff --git a/src/vendor/workerman/workerman/src/Protocols/Http/Session/SessionHandlerInterface.php b/vendor/workerman/workerman/src/Protocols/Http/Session/SessionHandlerInterface.php similarity index 100% rename from src/vendor/workerman/workerman/src/Protocols/Http/Session/SessionHandlerInterface.php rename to vendor/workerman/workerman/src/Protocols/Http/Session/SessionHandlerInterface.php diff --git a/src/vendor/workerman/workerman/src/Protocols/Http/mime.types b/vendor/workerman/workerman/src/Protocols/Http/mime.types similarity index 100% rename from src/vendor/workerman/workerman/src/Protocols/Http/mime.types rename to vendor/workerman/workerman/src/Protocols/Http/mime.types diff --git a/src/vendor/workerman/workerman/src/Protocols/ProtocolInterface.php b/vendor/workerman/workerman/src/Protocols/ProtocolInterface.php similarity index 100% rename from src/vendor/workerman/workerman/src/Protocols/ProtocolInterface.php rename to vendor/workerman/workerman/src/Protocols/ProtocolInterface.php diff --git a/src/vendor/workerman/workerman/src/Protocols/Text.php b/vendor/workerman/workerman/src/Protocols/Text.php similarity index 100% rename from src/vendor/workerman/workerman/src/Protocols/Text.php rename to vendor/workerman/workerman/src/Protocols/Text.php diff --git a/src/vendor/workerman/workerman/src/Protocols/Websocket.php b/vendor/workerman/workerman/src/Protocols/Websocket.php similarity index 100% rename from src/vendor/workerman/workerman/src/Protocols/Websocket.php rename to vendor/workerman/workerman/src/Protocols/Websocket.php diff --git a/src/vendor/workerman/workerman/src/Protocols/Ws.php b/vendor/workerman/workerman/src/Protocols/Ws.php similarity index 100% rename from src/vendor/workerman/workerman/src/Protocols/Ws.php rename to vendor/workerman/workerman/src/Protocols/Ws.php diff --git a/src/vendor/workerman/workerman/src/Timer.php b/vendor/workerman/workerman/src/Timer.php similarity index 100% rename from src/vendor/workerman/workerman/src/Timer.php rename to vendor/workerman/workerman/src/Timer.php diff --git a/src/vendor/workerman/workerman/src/Worker.php b/vendor/workerman/workerman/src/Worker.php similarity index 100% rename from src/vendor/workerman/workerman/src/Worker.php rename to vendor/workerman/workerman/src/Worker.php